pppoe hooks
[openwrt/svn-archive/archive.git] / root / etc / functions.sh
index 1f9afb2948a04f0fa235e37007ff6d5480d3c498..2b85e15cbe053f277b675642694b2a2d5f6b5c1a 100755 (executable)
@@ -104,5 +104,7 @@ ifdown () (
   type=$1
   debug "### ifdown $type ###"
   if=$(nvram_get ${type}_ifname)
-  if_valid $if && $DEBUG ifconfig $if down
+  if_valid $if || return
+  kill $(cat /var/run/${if}.pid 2>-)2>-
+  $DEBUG ifconfig $if down
 )