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 | 54a30a74f913073fe969878ec0a2fbf587f37350 (patch) | |
tree | f670a25ce04780e707afba8251244a3c843d55d3 | |
parent | 790d22d8824f0b156da9985664ebc0bd6fa2c93d (diff) | |
download | mtk-20170518-54a30a74f913073fe969878ec0a2fbf587f37350.zip mtk-20170518-54a30a74f913073fe969878ec0a2fbf587f37350.tar.gz mtk-20170518-54a30a74f913073fe969878ec0a2fbf587f37350.tar.bz2 |
small ifup change for pptp
SVN-Revision: 1462
-rwxr-xr-x | openwrt/target/default/target_skeleton/sbin/ifup | 4 |
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 95bd210..3d81364 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) |