summaryrefslogtreecommitdiffstats
path: root/package/hostapd/files/wps-hotplug.sh
blob: b5376cc55b37cb48798dc3f8b0411ff7914eb72b (plain)
1
2
3
4
5
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