diff options
-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() |