fix ifup for pppoa
SVN-Revision: 1803
This commit is contained in:
parent
7c4e0e0e98
commit
bc5d0f4c3c
1 changed files with 24 additions and 22 deletions
|
@ -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…
Reference in a new issue