diff options
author | John Crispin <blogic@openwrt.org> | 2013-11-11 12:19:10 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-11-11 12:19:10 +0000 |
commit | 07a508345d7078f20dcce65e57a4b3ffb7261e23 (patch) | |
tree | 7c8775a284e704793105a00bf09f8d58bf758441 | |
parent | 0cfaf503c393ac345b230ce507723735bce21e3c (diff) | |
download | upstream-07a508345d7078f20dcce65e57a4b3ffb7261e23.tar.gz upstream-07a508345d7078f20dcce65e57a4b3ffb7261e23.tar.bz2 upstream-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
-rwxr-xr-x | package/base-files/files/etc/rc.button/wps | 6 |
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 |