2004-07-13 10:51:21 +08:00
|
|
|
#!/bin/ash
|
|
|
|
. /etc/functions.sh
|
|
|
|
type=$1
|
|
|
|
debug "### ifdown $type ###"
|
|
|
|
if=$(nvram_get ${type}_ifname)
|
|
|
|
if_valid $if || return
|
2004-07-27 15:27:13 +08:00
|
|
|
kill $(cat /var/run/${if}.pid 2>&-) 2>&-
|
2004-07-13 10:51:21 +08:00
|
|
|
$DEBUG ifconfig $if down
|