summaryrefslogtreecommitdiffstats
path: root/root/sbin/ifdown
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-07-13 02:51:21 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-07-13 02:51:21 +0000
commitedde8d40b677a02d729e299aa0f986598deb287d (patch)
treebcfb429eef178d9b65350ee67d1476bb08645656 /root/sbin/ifdown
parent5e235f254fb2d618414a9bbe86789815b7d1df2d (diff)
split ifup/ifdown/wifi into standalone scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@94 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root/sbin/ifdown')
-rwxr-xr-xroot/sbin/ifdown8
1 files changed, 8 insertions, 0 deletions
diff --git a/root/sbin/ifdown b/root/sbin/ifdown
new file mode 100755
index 000000000..d1d19b033
--- /dev/null
+++ b/root/sbin/ifdown
@@ -0,0 +1,8 @@
+#!/bin/ash
+. /etc/functions.sh
+ type=$1
+ debug "### ifdown $type ###"
+ if=$(nvram_get ${type}_ifname)
+ if_valid $if || return
+ kill $(cat /var/run/${if}.pid 2>-) 2>-
+ $DEBUG ifconfig $if down