From edde8d40b677a02d729e299aa0f986598deb287d Mon Sep 17 00:00:00 2001 From: mbm Date: Tue, 13 Jul 2004 02:51:21 +0000 Subject: split ifup/ifdown/wifi into standalone scripts git-svn-id: svn://svn.openwrt.org/openwrt/trunk@94 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- root/sbin/ifdown | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 root/sbin/ifdown (limited to 'root/sbin/ifdown') 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 -- cgit v1.2.3