diff options
author | Hiroyuki Sato <hiroysato@gmail.com> | 2015-01-26 13:31:12 +0900 |
---|---|---|
committer | Hiroyuki Sato <hiroysato@gmail.com> | 2015-01-26 13:31:12 +0900 |
commit | 8ac12661229501a423ade99afd6cba5a0bcb0f5a (patch) | |
tree | 7758f73c62c4873d6e98d57a160181b0d4b57486 /templates | |
parent | 8f876283b80016b8fb07817012cffb793fc633dc (diff) | |
download | vyatta-cfg-system-8ac12661229501a423ade99afd6cba5a0bcb0f5a.tar.gz vyatta-cfg-system-8ac12661229501a423ade99afd6cba5a0bcb0f5a.zip |
Fix Bug#382. (Another fix).
If radvd is not running, the pgrep command returns an empty string, not zero.
Reported-by Carl Byington <vyos-bug@five-ten-sg.com>
Diffstat (limited to 'templates')
-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 |