aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-12-26 17:56:26 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2011-12-26 17:56:26 -0800
commit5615325a8406c5691991381d4e9d760e4f84be58 (patch)
tree4f873a6f24cc475e71933df990bc4fa36d8367e5 /net
parent537171eac271e050191d03dd6f041fbf8355d782 (diff)
net/vlan: Fix prestop when device was hard-removed already
During stop of an interface, if it has been removed already (eg hotunplug), not existing is fine. X-Gentoo-Bug: 395859 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=395859 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'net')
-rw-r--r--net/vlan.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/vlan.sh b/net/vlan.sh
index ced5aa0c..960cd09b 100644
--- a/net/vlan.sh
+++ b/net/vlan.sh
@@ -123,7 +123,7 @@ vlan_pre_stop()
{
local vlan=
- _exists || return 1
+ _exists || return 0
for vlan in $(_get_vlans); do
einfo "Removing VLAN ${vlan##*.} from ${IFACE}"