summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-11 12:19:10 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-11 12:19:10 +0000
commita4c4bbef35ce65d7d331609cff19e9a05650bed4 (patch)
tree7c8775a284e704793105a00bf09f8d58bf758441
parentbf329022531db717bb32bf414443bb69716ce315 (diff)
base-files: add a generic wps button handler
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38726 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/base-files/files/etc/rc.button/wps6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/files/etc/rc.button/wps b/package/base-files/files/etc/rc.button/wps
new file mode 100755
index 0000000000..c913d5bab3
--- /dev/null
+++ b/package/base-files/files/etc/rc.button/wps
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for dir in /var/run/hostapd-*; do
+ [ -d "$dir" ] || continue
+ hostapd_cli -p "$dir" wps_pbc
+done