e59e05739744c52b26ae9a66f0e511284fb0137a
[openwrt/svn-archive/archive.git] / obsolete-buildroot / sources / openwrt / root / sbin / ifdown
1 #!/bin/ash
2 . /etc/functions.sh
3 type=$1
4 debug "### ifdown $type ###"
5 if=$(nvram get ${type}_ifname)
6 if_valid $if || return
7 kill $(cat /var/run/${if}.pid 2>&-) 2>&-
8 $DEBUG ifconfig $if down