summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-09-21 13:26:47 +0200
committerChristian Ruppert <idl0r@gentoo.org>2011-09-21 13:26:47 +0200
commit4b6392987873107f83fa135b871ac137a6c29ba2 (patch)
tree39308a2e7e7b5a0cff620561c8d4fe7ae471dd4e
parent29693ecb7a031f6bacb74fd4dccfe0bdb1b1e5f8 (diff)
downloadopenrc-4b6392987873107f83fa135b871ac137a6c29ba2.tar.gz
openrc-4b6392987873107f83fa135b871ac137a6c29ba2.tar.bz2
openrc-4b6392987873107f83fa135b871ac137a6c29ba2.tar.xz
Shutdown VLAN's before the actual/parent interface
Make sure the VLAN interfaces as well as its rules will be removed prior to the actual/parent interface. The VLAN configs are gone in vlan_post_stop() already so we have to use vlan_pre_stop() instead. Reported-by: Bernd Bednarz <bernd.bednarz@avira.com> X-Gentoo-Bug: 380603 X-Gentoo-Bug-URL: https://bugs.gentoo.org/380603
-rw-r--r--net/vlan.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/vlan.sh b/net/vlan.sh
index 164139b..c7e5748 100644
--- a/net/vlan.sh
+++ b/net/vlan.sh
@@ -101,10 +101,12 @@ vlan_post_start()
return 0
}
-vlan_post_stop()
+vlan_pre_stop()
{
local vlan=
+ _exists || return 1
+
for vlan in $(_get_vlans); do
einfo "Removing VLAN ${vlan##*.} from ${IFACE}"
(