fix detection of renamed vlan interfaces

This fixes bug 327059, thanks to Jonathan for reporting this and for the patch.
This commit is contained in:
William Hubbs 2010-08-19 16:17:38 -05:00
parent 1a188f8f72
commit 23546e27d9

View File

@ -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()