summaryrefslogtreecommitdiffstats
path: root/openwrt/target/default/target_skeleton/sbin/ifup
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-16 14:01:59 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-16 14:01:59 +0000
commit92efe0ea18e0752bf8f78e9257094e3fe76ec5a4 (patch)
treef670a25ce04780e707afba8251244a3c843d55d3 /openwrt/target/default/target_skeleton/sbin/ifup
parent1c79b1465da207c0d60b866b7fe991a5e1a7b8ce (diff)
small ifup change for pptp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1462 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/default/target_skeleton/sbin/ifup')
-rwxr-xr-xopenwrt/target/default/target_skeleton/sbin/ifup4
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/target/default/target_skeleton/sbin/ifup b/openwrt/target/default/target_skeleton/sbin/ifup
index 95bd2107d..3d81364d0 100755
--- a/openwrt/target/default/target_skeleton/sbin/ifup
+++ b/openwrt/target/default/target_skeleton/sbin/ifup
@@ -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)