aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-01 21:34:31 +0000
committerRoy Marples <roy@marples.name>2008-04-01 21:34:31 +0000
commit403abe73decb57a7f2110b6f965f81570cfbb2bf (patch)
tree2229010d26ebaace5c9ce7836af53ce31f62a4ad
parentbe82e950d70d7568eabbdad78dfc5c7faf6d22b1 (diff)
Fix vlans, #49.
-rw-r--r--net/vlan.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/vlan.sh b/net/vlan.sh
index 7d77aae8..3eda7e4f 100644
--- a/net/vlan.sh
+++ b/net/vlan.sh
@@ -66,7 +66,7 @@ vlan_pre_start()
vlan_post_start()
{
local vlans=
- eval vlans=\$vlans_${IFACE}
+ eval vlans=\$vlans_${IFVAR}
[ -z "${vlans}" ] && return 0
_check_vlan || return 1
@@ -86,13 +86,13 @@ vlan_post_start()
yesno ${s:-yes} || continue
# We need to work out the interface name of our new vlan id
- local ifname="$( \
- sed -n -e 's/^\([^[:space:]]*\) *| '"${vlan}"' *| .*'"${iface}"'$/\1/p' \
+ local ifname="$(sed -n -e \
+ 's/^\([^[:space:]]*\) *| '"${vlan}"' *| .*'"${iface}"'$/\1/p' \
/proc/net/vlan/config )"
mark_service_started "net.${ifname}"
(
export RC_SVCNAME="net.${ifname}"
- start
+ start
) || mark_service_stopped "net.${ifname}"
done