diff options
author | Mark O'Brien <mark@vyatta.com> | 2009-07-01 16:14:55 -0700 |
---|---|---|
committer | Mark O'Brien <mark@vyatta.com> | 2009-07-01 16:14:55 -0700 |
commit | 85f6cdd06a22a20757c3c144716b0f67f20dc6c5 (patch) | |
tree | ce33a98bab893c237c1c8af97de62865e2381b1a /templates | |
parent | 7381b709a9c1370ac8d4471e1a62b6c609476368 (diff) | |
download | vyatta-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.def | 2 |
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" |