run /sbin/ifdown.<proto> from /sbin/ifdown
authorFelix Fietkau <nbd@openwrt.org>
Fri, 3 Nov 2006 10:06:44 +0000 (10:06 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 3 Nov 2006 10:06:44 +0000 (10:06 +0000)
SVN-Revision: 5411

openwrt/package/base-files/default/sbin/ifdown

index c4a9980bb68f44c24495c3cf95d07f0a1478842b..53b63bb00fe8cd751e7a65eab551048d5bbd273e 100755 (executable)
@@ -10,6 +10,7 @@ proto=$(nvram get ${type}_proto)
 if_valid $if && $DEBUG ifconfig $if down
 [ -r /var/run/${if}.pid ] && kill $(cat /var/run/${if}.pid 2>&-) 2>&-
 killall ifup.$proto >&- 2>&-
+[ -x "/sbin/ifdown.$proto" ] && /sbin/ifdown.$proto "$type"
 case "$proto" in
        pptp|pppoe) killall pppd >&- 2>&- ;;
        static) env -i ACTION="ifdown" INTERFACE="$type" PROTO=static /sbin/hotplug "iface" ;;