diff options
Diffstat (limited to 'templates/system')
-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 a029c81a..4d374455 100644 --- a/templates/system/ipv6/disable-forwarding/node.def +++ b/templates/system/ipv6/disable-forwarding/node.def @@ -34,7 +34,7 @@ delete: # If router advertisements were configured while global IPv6 # forwarding was disabled, we will need to start the radvd daemon # now. - running=`ps --no-headers -C radvd | wc -l` + running=$(pgrep -n radvd) if [ $running -eq 0 -a -e /etc/radvd.conf -a -x /etc/init.d/radvd ]; then /etc/init.d/radvd start fi |