more fixes for the network scripts
[openwrt.git] / package / base-files / default / sbin / ifdown
index 8818d46..85bb2fb 100755 (executable)
@@ -15,6 +15,8 @@ case "$if_proto" in
        ""|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"