aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/vlan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net.Linux/vlan.sh')
-rw-r--r--net.Linux/vlan.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/net.Linux/vlan.sh b/net.Linux/vlan.sh
index 00a402bd..1542d4c0 100644
--- a/net.Linux/vlan.sh
+++ b/net.Linux/vlan.sh
@@ -11,7 +11,8 @@ _config_vars="$_config_vars vlans"
_is_vlan() {
[ ! -d /proc/net/vlan ] && return 1
- grep -q "^${IFACE}[[:space:]]+" /proc/net/vlan/config
+ [ -e /proc/net/vlan/"${IFACE}" ] && return 0
+ grep -Eq "^${IFACE}[[:space:]]+" /proc/net/vlan/config
}
_get_vlans() {