summaryrefslogtreecommitdiff
path: root/openwrt/target/default/target_skeleton/sbin/ifdown
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-02-06 00:58:10 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-02-06 00:58:10 +0000
commit6516b8e39a52b3df85edc753aeb3bfe45ab8b66e (patch)
tree4d80eccb1b3ac8b9efa5b0d1b503f01bb74d50f1 /openwrt/target/default/target_skeleton/sbin/ifdown
parent6fa165042b07cbb6ff52d2439e79d8ffe17be4ab (diff)
openwrt root
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@212 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/default/target_skeleton/sbin/ifdown')
-rwxr-xr-xopenwrt/target/default/target_skeleton/sbin/ifdown8
1 files changed, 8 insertions, 0 deletions
diff --git a/openwrt/target/default/target_skeleton/sbin/ifdown b/openwrt/target/default/target_skeleton/sbin/ifdown
new file mode 100755
index 0000000000..e59e057397
--- /dev/null
+++ b/openwrt/target/default/target_skeleton/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