mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-25 23:57:56 +02:00
fix ifup for pppoa
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1803 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3a762f9624
commit
d7a58579b4
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user