summaryrefslogtreecommitdiff
path: root/package/hostapd/files/wps-hotplug.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-07-08 18:36:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-07-08 18:36:17 +0000
commitca4a8b1bee22646319f8e2aeb1ed59062403a9b8 (patch)
treea564e331397dba07eb504951ab54088430a48d9c /package/hostapd/files/wps-hotplug.sh
parent3e75044a95d42c948dc84d4a88776c7923c20055 (diff)
downloadmtk-20170518-ca4a8b1bee22646319f8e2aeb1ed59062403a9b8.zip
mtk-20170518-ca4a8b1bee22646319f8e2aeb1ed59062403a9b8.tar.gz
mtk-20170518-ca4a8b1bee22646319f8e2aeb1ed59062403a9b8.tar.bz2
hostapd: add preliminary wps script support (push-button only, does not handle multi-bss yet)
SVN-Revision: 22100
Diffstat (limited to 'package/hostapd/files/wps-hotplug.sh')
-rw-r--r--package/hostapd/files/wps-hotplug.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/hostapd/files/wps-hotplug.sh b/package/hostapd/files/wps-hotplug.sh
new file mode 100644
index 0000000..b5376cc
--- /dev/null
+++ b/package/hostapd/files/wps-hotplug.sh
@@ -0,0 +1,6 @@
+if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
+ for dir in /var/run/hostapd-*; do
+ [ -d "$dir" ] || continue
+ hostapd_cli -p "$dir" wps_pbc
+ done
+fi