add config file /etc/config/network, add board-specific network.overrides (instead...
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / default / sbin / ifdown
1 #!/bin/ash
2 [ $# = 0 ] && { echo " $0 <group>"; exit; }
3 . /etc/functions.sh
4 . /etc/network.overrides
5 [ -e /etc/config/network ] && . /etc/config/network
6 type=$1
7 debug "### ifdown $type ###"
8 if=$(nvram get ${type}_ifname)
9 if_valid $if || exit
10 $DEBUG ifconfig $if down
11 kill $(cat /var/run/${if}.pid 2>&-) 2>&-