1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-26 21:48:25 +02:00
openwrt-xburst/openwrt/package/base-files/default/sbin/ifdown
nbd 629b5c0767 add config file /etc/config/network, add board-specific network.overrides (instead of nvram.overrides)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1519 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-07-21 14:02:53 +00:00

12 lines
309 B
Bash
Executable File

#!/bin/ash
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
. /etc/network.overrides
[ -e /etc/config/network ] && . /etc/config/network
type=$1
debug "### ifdown $type ###"
if=$(nvram get ${type}_ifname)
if_valid $if || exit
$DEBUG ifconfig $if down
kill $(cat /var/run/${if}.pid 2>&-) 2>&-