aboutsummaryrefslogtreecommitdiffstats
path: root/main/bonding/bonding.post-down
diff options
context:
space:
mode:
Diffstat (limited to 'main/bonding/bonding.post-down')
-rwxr-xr-xmain/bonding/bonding.post-down5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/bonding/bonding.post-down b/main/bonding/bonding.post-down
index 8dd4c07e93..5b62d8b923 100755
--- a/main/bonding/bonding.post-down
+++ b/main/bonding/bonding.post-down
@@ -19,7 +19,7 @@ sysfs_remove_all()
# Called with:
# $1 = target filename
read values < "/sys/class/net/$IFACE/bonding/$1"
- for value in $values ; do
+ for value in $values ; do
echo "-$value" > "/sys/class/net/$IFACE/bonding/$1"
done
}
@@ -62,3 +62,6 @@ for slave in $slaves ; do
echo "-$slave" > "$BOND_PARAMS/slaves" 2> /dev/null
fi
done
+
+# make sure that the link is set to down
+ip link set dev $IFACE down