1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 00:14:05 +02:00

small ifup change for pptp

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1462 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2005-07-16 14:01:59 +00:00
parent 21b0f0832b
commit ef7e245183

View File

@ -4,8 +4,9 @@
type=$1
debug "### ifup $type ###"
if_proto=$(nvram get ${type}_proto)
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
mac=$(nvram get ${type}_hwaddr)
@ -28,7 +29,6 @@ else
${mac:+$DEBUG ifconfig $if down hw ether $mac}
fi
if_proto=$(nvram get ${type}_proto)
case "$if_proto" in
static)
ip=$(nvram get ${type}_ipaddr)