summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <basile@opensource.dyc.edu>2010-08-13 17:42:23 -0400
committerAnthony G. Basile <basile@opensource.dyc.edu>2010-08-13 17:42:23 -0400
commit89829f6d7c13fa43fc81dc1f2174bce40fc50389 (patch)
treeb7bd846c598b6cad35e9753694917916ebe40e4c
parent6e3b3bfc5371d72c1bc436f7bc7c12cb2d1a81b1 (diff)
downloadopenrc-89829f6d7c13fa43fc81dc1f2174bce40fc50389.tar.gz
openrc-89829f6d7c13fa43fc81dc1f2174bce40fc50389.tar.bz2
openrc-89829f6d7c13fa43fc81dc1f2174bce40fc50389.tar.xz
Fixes bug #332383. Thanks Lutz Heermann.
-rw-r--r--net/bonding.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bonding.sh b/net/bonding.sh
index 205af2b..1a4886e 100644
--- a/net/bonding.sh
+++ b/net/bonding.sh
@@ -132,6 +132,12 @@ bonding_stop()
done
)
+ _down
+
+ if [ -d /sys/class/net ]; then
+ echo "-${IFACE}" > /sys/class/net/bonding_masters
+ fi
+
eend 0
return 0
}