blob: 4c7e982117600eed6d41074df62997a82579f386 (
plain)
1
2
3
4
5
6
7
8
|
#!/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
|