From f4283e577555f6833aceea88f5226e271210c9d0 Mon Sep 17 00:00:00 2001 From: Hiroyuki Sato Date: Mon, 26 Jan 2015 13:31:12 +0900 Subject: Fix Bug#382. (Another fix). If radvd is not running, the pgrep command returns an empty string, not zero. Reported-by Carl Byington --- templates/system/ipv6/disable-forwarding/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3