summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/sbin
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-19 19:04:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-19 19:04:15 +0000
commit81668c7ab947e41f9a3a667ecf32545001d367e3 (patch)
treec656238021e382ce9f16f89c9e5dfade3850937f /openwrt/package/base-files/default/sbin
parent969a4d1c2a55b9def4c4576816ffe37f357e0f94 (diff)
downloadmtk-20170518-81668c7ab947e41f9a3a667ecf32545001d367e3.zip
mtk-20170518-81668c7ab947e41f9a3a667ecf32545001d367e3.tar.gz
mtk-20170518-81668c7ab947e41f9a3a667ecf32545001d367e3.tar.bz2
more fixes for the network scripts
SVN-Revision: 2537
Diffstat (limited to 'openwrt/package/base-files/default/sbin')
-rwxr-xr-xopenwrt/package/base-files/default/sbin/ifdown2
-rwxr-xr-xopenwrt/package/base-files/default/sbin/ifup2
2 files changed, 4 insertions, 0 deletions
diff --git a/openwrt/package/base-files/default/sbin/ifdown b/openwrt/package/base-files/default/sbin/ifdown
index 8818d46..85bb2fb 100755
--- a/openwrt/package/base-files/default/sbin/ifdown
+++ b/openwrt/package/base-files/default/sbin/ifdown
@@ -15,6 +15,8 @@ case "$if_proto" in
""|none) exit 0;;
esac
+[ "${if%%[0-9]*}" = "ppp" ] && if="$(nvram get ${if_proto}_ifname)"
+
if [ "${if%%[0-9]}" = "br" ]; then
for sif in $(nvram get ${type}_ifnames); do
hotplug_dev unregister "$sif"
diff --git a/openwrt/package/base-files/default/sbin/ifup b/openwrt/package/base-files/default/sbin/ifup
index 0a2cdf5..67e01a3 100755
--- a/openwrt/package/base-files/default/sbin/ifup
+++ b/openwrt/package/base-files/default/sbin/ifup
@@ -23,6 +23,8 @@ case "$if_proto" in
none|"") exit 0;;
esac
+[ "${if%%[0-9]*}" = "ppp" ] && if="$(nvram get ${if_proto}_ifname)"
+
if [ "${if%%[0-9]}" = "br" ]; then
for sif in $(nvram get ${type}_ifnames); do
hotplug_dev register "$sif"