diff options
author | sever-sever <v.gletenko@vyos.io> | 2020-08-11 11:46:44 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2020-08-11 11:46:44 +0000 |
commit | e8c48fa960f8809ce844b3ab320f70ae8894e2d2 (patch) | |
tree | 898cba2a8e8c7a06e76ef8da0bf22b496c6b9aa2 /templates-op/show/nhrp/interface/node.def | |
parent | 4f9c75a6ffee881b52dec201e31975a8af486df2 (diff) | |
download | vyos-nhrp-e8c48fa960f8809ce844b3ab320f70ae8894e2d2.tar.gz vyos-nhrp-e8c48fa960f8809ce844b3ab320f70ae8894e2d2.zip |
op-mode: T2325: Check pid file before show nhrp tunnel
Diffstat (limited to 'templates-op/show/nhrp/interface/node.def')
-rw-r--r-- | templates-op/show/nhrp/interface/node.def | 2 |
1 files changed, 1 insertions, 1 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 |