Merged enhancements submitted by Stereo, thanks, closes #188 and #189
[openwrt-10.03/.git] / package / base-files / default / sbin / ifdown
index 8818d46145c532c6d400c61f338aaffeafc5971b..85bb2fbc5db0033562d59a789ce55a279d389839 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"