aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/vlan.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-17 11:27:47 +0000
committerRoy Marples <roy@marples.name>2007-04-17 11:27:47 +0000
commite635e1646466d632250ac2ed9e0d3d3b86dfb4cf (patch)
tree13f3d7f4d8576120f856d7392aa4997a1a3dde84 /net.Linux/vlan.sh
parentf657d87b997f5b599d74a8f2eb6fef8dd6381550 (diff)
Fix bridge, vlan and bonding modules to work together, #174792.
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() {