openwrtv3/package/network/services/hostapd/files/wps-hotplug.sh

9 lines
171 B
Bash
Raw Normal View History

#!/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