diff options
| -rw-r--r-- | op-mode-definitions/nhrp.xml.in | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/op-mode-definitions/nhrp.xml.in b/op-mode-definitions/nhrp.xml.in index 9e746cc35..89508e2be 100644 --- a/op-mode-definitions/nhrp.xml.in +++ b/op-mode-definitions/nhrp.xml.in @@ -50,13 +50,13 @@              <properties>                <help>Show NHRP interface connection information</help>              </properties> -            <command>if [ -f /var/run/opennhrp.pid ]; then sudo opennhrpctl interface show; else echo OpenNHRP is not running.; fi</command> +            <command>if pgrep opennhrp >/dev/null; then sudo opennhrpctl interface show; else echo OpenNHRP is not running; fi</command>            </leafNode>            <leafNode name="tunnel">              <properties>                <help>Show NHRP tunnel connection information</help>              </properties> -            <command>if [ -f /var/run/opennhrp.pid ]; then sudo opennhrpctl show ; else echo OpenNHRP is not running.; fi</command> +            <command>if pgrep opennhrp >/dev/null; then sudo opennhrpctl show ; else echo OpenNHRP is not running; fi</command>            </leafNode>          </children>        </node> | 
