diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-11-19 14:53:21 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-11-19 14:53:21 +0000 |
commit | 76dec73b0b803f861192efe08b95f2cf331a96e2 (patch) | |
tree | 6d952ddec97497237fa3b17016cb8530c60ec096 /package/base-files/default/sbin/ifup | |
parent | 1b02e2c32ceefd3b59c34c3eb8d9080b83be1bd6 (diff) |
fix ifup/down for ppp-based stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2536 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/sbin/ifup')
-rwxr-xr-x | package/base-files/default/sbin/ifup | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package/base-files/default/sbin/ifup b/package/base-files/default/sbin/ifup index 0d75cefeb6..0a2cdf5331 100755 --- a/package/base-files/default/sbin/ifup +++ b/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 |