configure switch at boot time based on vlan*ports
[openwrt.git] / openwrt / package / base-files / default / sbin / ifdown
index 3ebc251..85bb2fb 100755 (executable)
@@ -12,14 +12,11 @@ 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%%[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"
This page took 0.027774 seconds and 4 git commands to generate.