From e8c48fa960f8809ce844b3ab320f70ae8894e2d2 Mon Sep 17 00:00:00 2001 From: sever-sever Date: Tue, 11 Aug 2020 11:46:44 +0000 Subject: op-mode: T2325: Check pid file before show nhrp tunnel --- templates-op/show/nhrp/interface/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates-op/show/nhrp/interface/node.def') 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 -- cgit v1.2.3