summaryrefslogtreecommitdiff
path: root/package/network/services/hostapd/files/wps-hotplug.sh
blob: ffd3cf929bb4a1bdf9f4de95bc4f11e3f1e59d26 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

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