From 23546e27d92b1ebee5b7b75e299dc24e941bd56d Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 19 Aug 2010 16:17:38 -0500 Subject: fix detection of renamed vlan interfaces This fixes bug 327059, thanks to Jonathan for reporting this and for the patch. --- net/vlan.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3