summaryrefslogtreecommitdiffstats
path: root/target/default/target_skeleton/sbin/ifdown
diff options
context:
space:
mode:
Diffstat (limited to 'target/default/target_skeleton/sbin/ifdown')
-rwxr-xr-xtarget/default/target_skeleton/sbin/ifdown8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/default/target_skeleton/sbin/ifdown b/target/default/target_skeleton/sbin/ifdown
new file mode 100755
index 000000000..e59e05739
--- /dev/null
+++ b/target/default/target_skeleton/sbin/ifdown
@@ -0,0 +1,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