wps-hotplug.sh 194 B

1234567891011
  1. #!/bin/sh
  2. if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
  3. cd /var/run/hostapd
  4. for socket in *; do
  5. [ -S "$socket" ] || continue
  6. hostapd_cli -i "$socket" wps_pbc
  7. done
  8. fi
  9. return 0