summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/sbin
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-19 14:53:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-19 14:53:21 +0000
commit969a4d1c2a55b9def4c4576816ffe37f357e0f94 (patch)
tree18ca8236b5b830a42291031e53a49c93be81da6b /openwrt/package/base-files/default/sbin
parent3cc0f965fb567da350ab21984ee3e91f761be81a (diff)
downloadmtk-20170518-969a4d1c2a55b9def4c4576816ffe37f357e0f94.zip
mtk-20170518-969a4d1c2a55b9def4c4576816ffe37f357e0f94.tar.gz
mtk-20170518-969a4d1c2a55b9def4c4576816ffe37f357e0f94.tar.bz2
fix ifup/down for ppp-based stuff
SVN-Revision: 2536
Diffstat (limited to 'openwrt/package/base-files/default/sbin')
-rwxr-xr-xopenwrt/package/base-files/default/sbin/ifdown7
-rwxr-xr-xopenwrt/package/base-files/default/sbin/ifup7
2 files changed, 5 insertions, 9 deletions
diff --git a/openwrt/package/base-files/default/sbin/ifdown b/openwrt/package/base-files/default/sbin/ifdown
index 3ebc251..8818d46 100755
--- a/openwrt/package/base-files/default/sbin/ifdown
+++ b/openwrt/package/base-files/default/sbin/ifdown
@@ -12,12 +12,7 @@ if=$(nvram get ${type}_ifname)
case "$if_proto" in
pppoa) hotplug_dev unregister atm0; exit 0 ;;
- pppoe)
- [ "$(nvram get pppoe_atm)" = 1 ] && {
- hotplug_dev unregister atm0
- exit
- }
- ;;
+ ""|none) exit 0;;
esac
if [ "${if%%[0-9]}" = "br" ]; then
diff --git a/openwrt/package/base-files/default/sbin/ifup b/openwrt/package/base-files/default/sbin/ifup
index 0d75cef..0a2cdf5 100755
--- a/openwrt/package/base-files/default/sbin/ifup
+++ b/openwrt/package/base-files/default/sbin/ifup
@@ -14,12 +14,13 @@ if=$(nvram get ${type}_ifname)
case "$if_proto" in
pppoa) hotplug_dev register atm0; exit 0 ;;
- pppoe)
- [ "$(nvram get pppoe_atm)" = 1 ] && {
+ pppoe)
+ ifconfig nas0 2>&- >&- || {
hotplug_dev register atm0
- exit
+ exit 0
}
;;
+ none|"") exit 0;;
esac
if [ "${if%%[0-9]}" = "br" ]; then