fix ifup for pppoa

SVN-Revision: 1803
This commit is contained in:
Felix Fietkau 2005-08-30 22:24:30 +00:00
parent 7c4e0e0e98
commit bc5d0f4c3c

View file

@ -8,6 +8,7 @@ type=$1
debug "### ifup $type ###" debug "### ifup $type ###"
if_proto=$(nvram get ${type}_proto) if_proto=$(nvram get ${type}_proto)
[ "${if_proto}" = "pppoa" ] || {
if=$(nvram get ${type}_ifname) if=$(nvram get ${type}_ifname)
[ "${if%%[0-9]}" = "ppp" ] && if=$(nvram get ${if_proto}_ifname) [ "${if%%[0-9]}" = "ppp" ] && if=$(nvram get ${if_proto}_ifname)
@ -34,6 +35,7 @@ if [ "${if%%[0-9]}" = "br" ]; then
else else
${mac:+$DEBUG ifconfig $if down hw ether $mac} ${mac:+$DEBUG ifconfig $if down hw ether $mac}
fi fi
}
case "$if_proto" in case "$if_proto" in
static) static)