From 4b6392987873107f83fa135b871ac137a6c29ba2 Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Wed, 21 Sep 2011 13:26:47 +0200 Subject: 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 X-Gentoo-Bug: 380603 X-Gentoo-Bug-URL: https://bugs.gentoo.org/380603 --- net/vlan.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'net/vlan.sh') 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}" ( -- cgit v1.2.3