diff options
author | Mark O'Brien <mark@vyatta.com> | 2009-07-01 16:16:10 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2009-07-17 14:56:05 -0700 |
commit | 7d8e03018554ab64001d54c88280b71097f63804 (patch) | |
tree | d824bf3ae21972ab86c0b19cf82880876e7b767b /templates | |
parent | 9c83fa0ecfd1bd40f44a1b3899a29c4cc941268f (diff) | |
download | vyatta-cfg-quagga-7d8e03018554ab64001d54c88280b71097f63804.tar.gz vyatta-cfg-quagga-7d8e03018554ab64001d54c88280b71097f63804.zip |
Fix 'sh: line 1:' error ing bug 4655.
(cherry picked from commit c43e9e86ea502c455dcffac10d50304d47cad8ba)
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 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 |