2004-08-12 08:47:00 +03:00
|
|
|
#!/bin/ash
|
|
|
|
. /etc/functions.sh
|
|
|
|
type=$1
|
|
|
|
debug "### ifdown $type ###"
|
2004-09-07 08:54:07 +03:00
|
|
|
if=$(nvram get ${type}_ifname)
|
2004-08-12 08:47:00 +03:00
|
|
|
if_valid $if || return
|
|
|
|
kill $(cat /var/run/${if}.pid 2>&-) 2>&-
|
|
|
|
$DEBUG ifconfig $if down
|