diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-07-08 18:36:17 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-07-08 18:36:17 +0000 |
commit | b94a8c0025bb2d5983ba2ad1d61137f271120e80 (patch) | |
tree | 97561d65f3a6588d8d3d784ea73e7067bc68d509 /package/hostapd/files/wps-hotplug.sh | |
parent | fcaea9057411b11859bea798ba38f9d3d1365b94 (diff) | |
download | upstream-b94a8c0025bb2d5983ba2ad1d61137f271120e80.tar.gz upstream-b94a8c0025bb2d5983ba2ad1d61137f271120e80.tar.bz2 upstream-b94a8c0025bb2d5983ba2ad1d61137f271120e80.zip |
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.sh | 6 |
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 0000000000..b5376cc55b --- /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 |