projects
/
oweals
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pppoe hooks
[oweals/openwrt.git]
/
root
/
etc
/
functions.sh
diff --git
a/root/etc/functions.sh
b/root/etc/functions.sh
index 1f9afb2948a04f0fa235e37007ff6d5480d3c498..2b85e15cbe053f277b675642694b2a2d5f6b5c1a 100755
(executable)
--- a/
root/etc/functions.sh
+++ b/
root/etc/functions.sh
@@
-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
)