summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/default/sbin')
-rwxr-xr-xpackage/base-files/default/sbin/ifdown7
-rwxr-xr-xpackage/base-files/default/sbin/ifup7
2 files changed, 5 insertions, 9 deletions
diff --git a/package/base-files/default/sbin/ifdown b/package/base-files/default/sbin/ifdown
index 3ebc251f7..8818d4614 100755
--- a/package/base-files/default/sbin/ifdown
+++ b/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/package/base-files/default/sbin/ifup b/package/base-files/default/sbin/ifup
index 0d75cefeb..0a2cdf533 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