diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-01-26 16:59:36 +0500 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-01-26 16:59:36 +0500 |
commit | 670cefe56026f35a8d57f506c07af18974a6bf66 (patch) | |
tree | 7758f73c62c4873d6e98d57a160181b0d4b57486 | |
parent | 8f876283b80016b8fb07817012cffb793fc633dc (diff) | |
parent | 8ac12661229501a423ade99afd6cba5a0bcb0f5a (diff) | |
download | vyatta-cfg-system-670cefe56026f35a8d57f506c07af18974a6bf66.tar.gz vyatta-cfg-system-670cefe56026f35a8d57f506c07af18974a6bf66.zip |
Merge pull request #39 from hiroyuki-sato/patch-for-vyos
Bug#382: fix radvd status check.
-rw-r--r-- | templates/system/ipv6/disable-forwarding/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/ipv6/disable-forwarding/node.def b/templates/system/ipv6/disable-forwarding/node.def index 5e689c5b..323b99d6 100644 --- a/templates/system/ipv6/disable-forwarding/node.def +++ b/templates/system/ipv6/disable-forwarding/node.def @@ -38,7 +38,7 @@ delete: # forwarding was disabled, we will need to start the radvd daemon # now. running=$(pgrep -n radvd) - if [[ $running -eq 0 ]] && + if [[ -z "$running" ]] && [[ -e /etc/radvd.conf ]] && [[ -x /etc/init.d/radvd ]]; then /etc/init.d/radvd start |