summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMark O'Brien <mark@vyatta.com>2009-07-01 16:14:55 -0700
committerMark O'Brien <mark@vyatta.com>2009-07-01 16:14:55 -0700
commit85f6cdd06a22a20757c3c144716b0f67f20dc6c5 (patch)
treece33a98bab893c237c1c8af97de62865e2381b1a /templates
parent7381b709a9c1370ac8d4471e1a62b6c609476368 (diff)
downloadvyatta-cfg-quagga-85f6cdd06a22a20757c3c144716b0f67f20dc6c5.tar.gz
vyatta-cfg-quagga-85f6cdd06a22a20757c3c144716b0f67f20dc6c5.zip
Fix 'sh:1 error' in bug 4655.
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bonding/node.def2
1 files changed, 1 insertions, 1 deletions
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"