base-files: add a generic wps button handler
authorJohn Crispin <john@openwrt.org>
Mon, 11 Nov 2013 12:19:10 +0000 (12:19 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 11 Nov 2013 12:19:10 +0000 (12:19 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38726

package/base-files/files/etc/rc.button/wps [new file with mode: 0755]

diff --git a/package/base-files/files/etc/rc.button/wps b/package/base-files/files/etc/rc.button/wps
new file mode 100755 (executable)
index 0000000..c913d5b
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for dir in /var/run/hostapd-*; do
+       [ -d "$dir" ] || continue
+       hostapd_cli -p "$dir" wps_pbc
+done