diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-07-16 14:01:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-07-16 14:01:59 +0000 |
commit | b7867f1395a9a45229b2acdab0f10cca69c308b5 (patch) | |
tree | 4461a1397f8ff381082cbac51dcdb95b866c5a61 /target/default/target_skeleton | |
parent | e01ccf1480a9b72dbead9b1fd9864b00023a533a (diff) | |
download | upstream-b7867f1395a9a45229b2acdab0f10cca69c308b5.tar.gz upstream-b7867f1395a9a45229b2acdab0f10cca69c308b5.tar.bz2 upstream-b7867f1395a9a45229b2acdab0f10cca69c308b5.zip |
small ifup change for pptp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1462 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/default/target_skeleton')
-rwxr-xr-x | target/default/target_skeleton/sbin/ifup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/default/target_skeleton/sbin/ifup b/target/default/target_skeleton/sbin/ifup index 95bd2107d8..3d81364d08 100755 --- a/target/default/target_skeleton/sbin/ifup +++ b/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) |