From 403abe73decb57a7f2110b6f965f81570cfbb2bf Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 1 Apr 2008 21:34:31 +0000 Subject: Fix vlans, #49. --- net/vlan.sh | 8 ++++---- 1 file 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 -- cgit v1.2.3