aboutsummaryrefslogtreecommitdiffstats
path: root/main/bonding/bonding.post-down
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-12 14:50:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-12 14:52:31 +0000
commit0a661e6030ef55bd0262bcbc1140107f06f73157 (patch)
treee4fa3a4640c5eec9d46ac0e0ee2295bff4e640fa /main/bonding/bonding.post-down
parent16adad70b228760742bd7f9e0bd1e3312e280201 (diff)
downloadaports-0a661e6030ef55bd0262bcbc1140107f06f73157.tar.bz2
aports-0a661e6030ef55bd0262bcbc1140107f06f73157.tar.xz
main/bonding: set link status to down
in case bonded interface is 'manual' ref #2219
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