Fix vlans, #49.

This commit is contained in:
Roy Marples 2008-04-01 21:34:31 +00:00
parent be82e950d7
commit 403abe73de

View File

@ -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,8 +86,8 @@ 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}"
(