projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3464b73
)
run /sbin/ifdown.<proto> from /sbin/ifdown
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 3 Nov 2006 10:06:44 +0000
(10:06 +0000)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/openwrt/package/base-files/default/sbin/ifdown
b/openwrt/package/base-files/default/sbin/ifdown
index c4a9980bb68f44c24495c3cf95d07f0a1478842b..53b63bb00fe8cd751e7a65eab551048d5bbd273e 100755
(executable)
--- a/
openwrt/package/base-files/default/sbin/ifdown
+++ b/
openwrt/package/base-files/default/sbin/ifdown
@@
-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" ;;