From 68ff71b07423f041c296893aeea2cc713b0cdd38 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 19 Nov 2005 14:53:21 +0000 Subject: fix ifup/down for ppp-based stuff git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2536 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/base-files/default/sbin/ifdown | 7 +------ openwrt/package/base-files/default/sbin/ifup | 7 ++++--- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'openwrt/package/base-files/default/sbin') diff --git a/openwrt/package/base-files/default/sbin/ifdown b/openwrt/package/base-files/default/sbin/ifdown index 3ebc251f7..8818d4614 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 0d75cefeb..0a2cdf533 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 -- cgit v1.2.3