From 85f6cdd06a22a20757c3c144716b0f67f20dc6c5 Mon Sep 17 00:00:00 2001 From: Mark O'Brien Date: Wed, 1 Jul 2009 16:14:55 -0700 Subject: Fix 'sh:1 error' in bug 4655. --- templates/interfaces/bonding/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/interfaces/bonding/node.def b/templates/interfaces/bonding/node.def index ece131b4..74e9e39d 100644 --- a/templates/interfaces/bonding/node.def +++ b/templates/interfaces/bonding/node.def @@ -5,7 +5,7 @@ syntax:expression: pattern $VAR(@) "^bond[0-9]+$" \ ; "bonding must be (bond0-bond99)" create: ${vyatta_sbindir}/vyatta-bonding.pl --create $VAR(@) delete: SLAVES=`cat /sys/class/net/$VAR(@)/bonding/slaves`; - if [ -z $SLAVES ] + if [ -z "$SLAVES" ] then ${vyatta_sbindir}/vyatta-bonding.pl --delete $VAR(@) else echo "bonded interface $VAR(@) still has slaves: $SLAVES" -- cgit v1.2.3