From 7d8e03018554ab64001d54c88280b71097f63804 Mon Sep 17 00:00:00 2001 From: Mark O'Brien Date: Wed, 1 Jul 2009 16:16:10 -0700 Subject: Fix 'sh: line 1:' error ing bug 4655. (cherry picked from commit c43e9e86ea502c455dcffac10d50304d47cad8ba) --- templates/interfaces/bonding/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/interfaces/bonding') diff --git a/templates/interfaces/bonding/node.def b/templates/interfaces/bonding/node.def index be8baaee..53800dba 100644 --- a/templates/interfaces/bonding/node.def +++ b/templates/interfaces/bonding/node.def @@ -10,7 +10,7 @@ create: sudo sh -c "echo +$VAR(@) > /sys/class/net/bonding_masters" || exit 1 sudo ip link set "$VAR(@)" up /opt/vyatta/sbin/vyatta-link-detect $VAR(@) on delete: SLAVES=`cat /sys/class/net/$VAR(@)/bonding/slaves`; - if [ -z $SLAVES ] + if [ -z "$SLAVES" ] then sudo sh -c "echo -$VAR(@) > /sys/class/net/bonding_masters" else -- cgit v1.2.3