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