split ifup/ifdown/wifi into standalone scripts
[openwrt.git] / root / sbin / ifdown
diff --git a/root/sbin/ifdown b/root/sbin/ifdown
new file mode 100755 (executable)
index 0000000..d1d19b0
--- /dev/null
@@ -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
This page took 0.021704 seconds and 4 git commands to generate.