diff options
author | Mark O'Brien <mark@vyatta.com> | 2009-07-01 16:16:10 -0700 |
---|---|---|
committer | Mark O'Brien <mark@vyatta.com> | 2009-07-01 16:16:10 -0700 |
commit | c43e9e86ea502c455dcffac10d50304d47cad8ba (patch) | |
tree | 0256150071bde87f7046f934e46ae3c257904f7d /templates/interfaces | |
parent | 483b96abdf8a1b32845a6d2b44e61a4cafb66a23 (diff) | |
download | vyatta-cfg-system-c43e9e86ea502c455dcffac10d50304d47cad8ba.tar.gz vyatta-cfg-system-c43e9e86ea502c455dcffac10d50304d47cad8ba.zip |
Fix 'sh: line 1:' error ing bug 4655.
Diffstat (limited to 'templates/interfaces')
-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 |