From afab9afc93c6e536b9b88fe8975c187eec717ada Mon Sep 17 00:00:00 2001 From: Hiroyuki Sato Date: Thu, 6 Nov 2014 00:20:00 +0900 Subject: Fix Bug#382 Removing system ipv6 forwarding causes script error. --- templates/system/ipv6/disable-forwarding/node.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/system/ipv6/disable-forwarding/node.def b/templates/system/ipv6/disable-forwarding/node.def index eefb8328..5e689c5b 100644 --- a/templates/system/ipv6/disable-forwarding/node.def +++ b/templates/system/ipv6/disable-forwarding/node.def @@ -25,7 +25,7 @@ delete: for i in * ; do if [[ "$i" == "default" ]] || [[ "$i" == "all" ]] || - [[ ! -d "$i" ]; then + [[ ! -d "$i" ]]; then continue fi if [[ -e /var/run/vyatta/ipv6_no_fwd.$i ]]; then @@ -40,7 +40,7 @@ delete: running=$(pgrep -n radvd) if [[ $running -eq 0 ]] && [[ -e /etc/radvd.conf ]] && - [[ -x /etc/init.d/radvd ]; then + [[ -x /etc/init.d/radvd ]]; then /etc/init.d/radvd start fi -- cgit v1.2.3