diff options
author | William Hubbs <williamh@gentoo.org> | 2010-08-19 16:17:38 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2010-08-19 16:17:38 -0500 |
commit | 23546e27d92b1ebee5b7b75e299dc24e941bd56d (patch) | |
tree | cf1f0533f86229b20e9d96488e9e46023d9c9cea /net | |
parent | 1a188f8f725186b2c2d6d7c67e79c2ff5ea9d05e (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')
-rw-r--r-- | net/vlan.sh | 2 |
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() |