diff options
| author | Mike Baker <mbm@openwrt.org> | 2004-07-13 02:51:21 +0000 |
|---|---|---|
| committer | Mike Baker <mbm@openwrt.org> | 2004-07-13 02:51:21 +0000 |
| commit | 7822103223d139844908de5c1f48ac44a8a1a838 (patch) | |
| tree | bcfb429eef178d9b65350ee67d1476bb08645656 /root/sbin/ifdown | |
| parent | 3c978a81afd854bc9417259396f6b814c4f46d6a (diff) | |
| download | mtk-20170518-7822103223d139844908de5c1f48ac44a8a1a838.zip mtk-20170518-7822103223d139844908de5c1f48ac44a8a1a838.tar.gz mtk-20170518-7822103223d139844908de5c1f48ac44a8a1a838.tar.bz2 | |
split ifup/ifdown/wifi into standalone scripts
SVN-Revision: 94
Diffstat (limited to 'root/sbin/ifdown')
| -rwxr-xr-x | root/sbin/ifdown | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/root/sbin/ifdown b/root/sbin/ifdown new file mode 100755 index 0000000..d1d19b0 --- /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 |
