diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-12 14:50:04 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-12 14:52:31 +0000 |
commit | 0a661e6030ef55bd0262bcbc1140107f06f73157 (patch) | |
tree | e4fa3a4640c5eec9d46ac0e0ee2295bff4e640fa /main/bonding/bonding.post-down | |
parent | 16adad70b228760742bd7f9e0bd1e3312e280201 (diff) | |
download | aports-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-x | main/bonding/bonding.post-down | 5 |
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 |