1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 10:05:20 +02:00
openwrt-xburst/root/sbin/ifdown
mbm edde8d40b6 split ifup/ifdown/wifi into standalone scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@94 3c298f89-4303-0410-b956-a3cf2f4a3e73
2004-07-13 02:51:21 +00:00

9 lines
198 B
Bash
Executable File

#!/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