aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-11-11 12:19:10 +0000
committerJohn Crispin <blogic@openwrt.org>2013-11-11 12:19:10 +0000
commit07a508345d7078f20dcce65e57a4b3ffb7261e23 (patch)
tree7c8775a284e704793105a00bf09f8d58bf758441 /package/base-files/files
parent0cfaf503c393ac345b230ce507723735bce21e3c (diff)
downloadmaster-187ad058-07a508345d7078f20dcce65e57a4b3ffb7261e23.tar.gz
master-187ad058-07a508345d7078f20dcce65e57a4b3ffb7261e23.tar.bz2
master-187ad058-07a508345d7078f20dcce65e57a4b3ffb7261e23.zip
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
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