X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5e235f254fb2d618414a9bbe86789815b7d1df2d..edde8d40b677a02d729e299aa0f986598deb287d:/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