From: Felix Fietkau Date: Sat, 16 Jul 2005 14:01:59 +0000 (+0000) Subject: small ifup change for pptp X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c9eec8d8a8d278d7a28768ed771c5f4159d739ca;p=openwrt%2Fsvn-archive%2Farchive.git small ifup change for pptp SVN-Revision: 1462 --- diff --git a/openwrt/target/default/target_skeleton/sbin/ifup b/openwrt/target/default/target_skeleton/sbin/ifup index 95bd2107d8..3d81364d08 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)