aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-11-11 12:19:10 +0000
committerJohn Crispin <john@openwrt.org>2013-11-11 12:19:10 +0000
commit243179f9f60d30de287e3c77931b15a82de3b536 (patch)
treebaf1e16f7fa8a6c0b31e6765c0297693ee74df0a /package/base-files/files
parent40031fdf9b95c76d9e4a3df9886f9e1900909a82 (diff)
downloadupstream-243179f9f60d30de287e3c77931b15a82de3b536.tar.gz
upstream-243179f9f60d30de287e3c77931b15a82de3b536.tar.bz2
upstream-243179f9f60d30de287e3c77931b15a82de3b536.zip
base-files: add a generic wps button handler
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38726
Diffstat (limited to 'package/base-files/files')
-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