diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2011-09-21 13:26:47 +0200 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2011-09-21 13:26:47 +0200 |
commit | 4b6392987873107f83fa135b871ac137a6c29ba2 (patch) | |
tree | 39308a2e7e7b5a0cff620561c8d4fe7ae471dd4e /net | |
parent | 29693ecb7a031f6bacb74fd4dccfe0bdb1b1e5f8 (diff) |
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
Diffstat (limited to 'net')
-rw-r--r-- | net/vlan.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/vlan.sh b/net/vlan.sh index 164139b9..c7e57483 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}" ( |