1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-18 13:23:09 +02:00
openwrt-xburst/package/hostapd/files/wps-hotplug.sh
nbd 115b6d53ff 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
2010-07-08 18:36:17 +00:00

7 lines
160 B
Bash

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