projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small ifup change for pptp
[openwrt-10.03/.git]
/
target
/
default
/
target_skeleton
/
sbin
/
ifup
diff --git
a/target/default/target_skeleton/sbin/ifup
b/target/default/target_skeleton/sbin/ifup
index 95bd2107d8d6ee63b73cf7dc8a65346cfeb6eda4..3d81364d0807556acc41081650f3c6fe3fe1f007 100755
(executable)
--- a/
target/default/target_skeleton/sbin/ifup
+++ b/
target/default/target_skeleton/sbin/ifup
@@
-4,8
+4,9
@@
type=$1
debug "### ifup $type ###"
type=$1
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
mac=$(nvram get ${type}_hwaddr)
if_valid $if || exit
mac=$(nvram get ${type}_hwaddr)
@@
-28,7
+29,6
@@
else
${mac:+$DEBUG ifconfig $if down hw ether $mac}
fi
${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)
case "$if_proto" in
static)
ip=$(nvram get ${type}_ipaddr)