summaryrefslogtreecommitdiffstats
path: root/root/sbin/ifdown
blob: d1d19b0333aa5e4524d0d89e3f08f5837e910726 (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