openwrtv4/openwrt/target/default/target_skeleton/sbin/ifdown
Felix Fietkau bfbd6b9ffa give basic commandline help
SVN-Revision: 1447
2005-07-15 16:56:23 +00:00

9 lines
232 B
Bash
Executable file

#!/bin/ash
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
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>&-