diff options
author | John Crispin <john@openwrt.org> | 2013-11-11 12:19:10 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-11-11 12:19:10 +0000 |
commit | 243179f9f60d30de287e3c77931b15a82de3b536 (patch) | |
tree | baf1e16f7fa8a6c0b31e6765c0297693ee74df0a /package/base-files/files/etc/rc.button | |
parent | 40031fdf9b95c76d9e4a3df9886f9e1900909a82 (diff) | |
download | mtk-20170518-243179f9f60d30de287e3c77931b15a82de3b536.zip mtk-20170518-243179f9f60d30de287e3c77931b15a82de3b536.tar.gz mtk-20170518-243179f9f60d30de287e3c77931b15a82de3b536.tar.bz2 |
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/etc/rc.button')
-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 0000000..c913d5b --- /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 |