summaryrefslogtreecommitdiffstats
path: root/target/default/target_skeleton/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