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:
parent
1a188f8f72
commit
23546e27d9
@ -20,7 +20,7 @@ _is_vlan()
|
|||||||
_get_vlans()
|
_get_vlans()
|
||||||
{
|
{
|
||||||
[ -e /proc/net/vlan/config ] || return 1
|
[ -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()
|
_check_vlan()
|
||||||
|
Loading…
Reference in New Issue
Block a user