diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-02-06 00:58:10 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-02-06 00:58:10 +0000 |
commit | 51d47ba15e193e6c95a82784878601e1c1de44f4 (patch) | |
tree | c9858d0b30c5bb5ac8dbab9462c5c56849f0331b /target/default/target_skeleton/sbin/ifdown | |
parent | c31ac521e420aa0cfd3ddbc0859b29b0e2a3ff3e (diff) |
openwrt root
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@212 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/default/target_skeleton/sbin/ifdown')
-rwxr-xr-x | target/default/target_skeleton/sbin/ifdown | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/default/target_skeleton/sbin/ifdown b/target/default/target_skeleton/sbin/ifdown new file mode 100755 index 000000000..e59e05739 --- /dev/null +++ b/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 |