summaryrefslogtreecommitdiffstats
path: root/obsolete-buildroot/sources/openwrt/root/sbin/ifdown
blob: e59e05739744c52b26ae9a66f0e511284fb0137a (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