diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-11-19 19:04:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-11-19 19:04:15 +0000 |
commit | 81668c7ab947e41f9a3a667ecf32545001d367e3 (patch) | |
tree | c656238021e382ce9f16f89c9e5dfade3850937f /openwrt/package/base-files/default/sbin | |
parent | 969a4d1c2a55b9def4c4576816ffe37f357e0f94 (diff) | |
download | mtk-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-x | openwrt/package/base-files/default/sbin/ifdown | 2 | ||||
-rwxr-xr-x | openwrt/package/base-files/default/sbin/ifup | 2 |
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" |