mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
small ifup change for pptp
SVN-Revision: 1462
This commit is contained in:
parent
790d22d882
commit
54a30a74f9
@ -4,8 +4,9 @@
|
|||||||
type=$1
|
type=$1
|
||||||
debug "### ifup $type ###"
|
debug "### ifup $type ###"
|
||||||
|
|
||||||
|
if_proto=$(nvram get ${type}_proto)
|
||||||
if=$(nvram get ${type}_ifname)
|
if=$(nvram get ${type}_ifname)
|
||||||
[ "${if%%[0-9]}" = "ppp" ] && if=$(nvram get pppoe_ifname)
|
[ "${if%%[0-9]}" = "ppp" ] && if=$(nvram get ${if_proto}_ifname)
|
||||||
|
|
||||||
if_valid $if || exit
|
if_valid $if || exit
|
||||||
mac=$(nvram get ${type}_hwaddr)
|
mac=$(nvram get ${type}_hwaddr)
|
||||||
@ -28,7 +29,6 @@ else
|
|||||||
${mac:+$DEBUG ifconfig $if down hw ether $mac}
|
${mac:+$DEBUG ifconfig $if down hw ether $mac}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if_proto=$(nvram get ${type}_proto)
|
|
||||||
case "$if_proto" in
|
case "$if_proto" in
|
||||||
static)
|
static)
|
||||||
ip=$(nvram get ${type}_ipaddr)
|
ip=$(nvram get ${type}_ipaddr)
|
||||||
|
Loading…
Reference in New Issue
Block a user