summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/sbin/ifup
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-01-16 03:14:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-01-16 03:14:59 +0000
commite272d81c21b34540668d7421dcf18fd9013b94ce (patch)
tree6c47c03bafdb5e3acdb8b11e1d8c6b1529e7e67f /openwrt/package/base-files/default/sbin/ifup
parent99ddd56ca38bbac21caa40a34c664b3aa487db2b (diff)
downloadmtk-20170518-e272d81c21b34540668d7421dcf18fd9013b94ce.zip
mtk-20170518-e272d81c21b34540668d7421dcf18fd9013b94ce.tar.gz
mtk-20170518-e272d81c21b34540668d7421dcf18fd9013b94ce.tar.bz2
port wan_device changes from whiterussian to kamikaze
SVN-Revision: 2993
Diffstat (limited to 'openwrt/package/base-files/default/sbin/ifup')
-rwxr-xr-xopenwrt/package/base-files/default/sbin/ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/sbin/ifup b/openwrt/package/base-files/default/sbin/ifup
index 67e01a3..8ae6416 100755
--- a/openwrt/package/base-files/default/sbin/ifup
+++ b/openwrt/package/base-files/default/sbin/ifup
@@ -23,7 +23,7 @@ case "$if_proto" in
none|"") exit 0;;
esac
-[ "${if%%[0-9]*}" = "ppp" ] && if="$(nvram get ${if_proto}_ifname)"
+[ "${if%%[0-9]*}" = "ppp" ] && if="$(nvram get ${type}_device)"
if [ "${if%%[0-9]}" = "br" ]; then
for sif in $(nvram get ${type}_ifnames); do