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