summaryrefslogtreecommitdiffstats
path: root/package/hostapd/files/wps-hotplug.sh
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-08 18:36:17 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-08 18:36:17 +0000
commit115b6d53ffe601b92586f20e19f687bedc74d28b (patch)
tree97561d65f3a6588d8d3d784ea73e7067bc68d509 /package/hostapd/files/wps-hotplug.sh
parent098781b9c8474c4aaa9f5bfcbb3864a84df2ba40 (diff)
hostapd: add preliminary wps script support (push-button only, does not handle multi-bss yet)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22100 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 000000000..b5376cc55
--- /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