aboutsummaryrefslogtreecommitdiff
path: root/net/vlan.sh
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2010-08-19 16:17:38 -0500
committerWilliam Hubbs <williamh@gentoo.org>2010-08-19 16:17:38 -0500
commit23546e27d92b1ebee5b7b75e299dc24e941bd56d (patch)
treecf1f0533f86229b20e9d96488e9e46023d9c9cea /net/vlan.sh
parent1a188f8f725186b2c2d6d7c67e79c2ff5ea9d05e (diff)
fix detection of renamed vlan interfaces
This fixes bug 327059, thanks to Jonathan for reporting this and for the patch.
Diffstat (limited to 'net/vlan.sh')
-rw-r--r--net/vlan.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/vlan.sh b/net/vlan.sh
index d54adeb9..c2450515 100644
--- a/net/vlan.sh
+++ b/net/vlan.sh
@@ -20,7 +20,7 @@ _is_vlan()
_get_vlans()
{
[ -e /proc/net/vlan/config ] || return 1
- sed -n -e 's/^\(.*[0-9]\) \(.* \) .*'"${IFACE}"'$/\1/p' /proc/net/vlan/config
+ sed -n -e 's/^\W*\([^ ]*\) \(.* \) .*'"${IFACE}"'$/\1/p' /proc/net/vlan/config
}
_check_vlan()