hostapd: Add WPS unconfigured & WPS pin method support
[openwrt/openwrt.git] / package / network / services / hostapd / files / wps-hotplug.sh
1 #!/bin/sh
2
3 if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
4 for dir in /var/run/hostapd-*; do
5 [ -d "$dir" ] || continue
6 hostapd_cli -p "$dir" wps_pbc
7 done
8 fi