diff options
Diffstat (limited to 'templates-op')
-rw-r--r-- | templates-op/show/nhrp/interface/node.def | 2 | ||||
-rw-r--r-- | templates-op/show/nhrp/tunnel/node.def | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates-op/show/nhrp/interface/node.def b/templates-op/show/nhrp/interface/node.def index 71b9f75..c00f5e2 100644 --- a/templates-op/show/nhrp/interface/node.def +++ b/templates-op/show/nhrp/interface/node.def @@ -1,3 +1,3 @@ help: Show NHRP interface connection information run: - sudo opennhrpctl interface show || echo OpenNHRP is not running. + if [ -f /var/run/opennhrp.pid ]; then sudo opennhrpctl interface show; else echo OpenNHRP is not running.; fi diff --git a/templates-op/show/nhrp/tunnel/node.def b/templates-op/show/nhrp/tunnel/node.def index 359ed89..3d4061d 100644 --- a/templates-op/show/nhrp/tunnel/node.def +++ b/templates-op/show/nhrp/tunnel/node.def @@ -1,3 +1,3 @@ help: Show NHRP tunnel connection information run: - sudo opennhrpctl show || echo OpenNHRP is not running. + if [ -f /var/run/opennhrp.pid ]; then sudo opennhrpctl show ; else echo OpenNHRP is not running.; fi |