Initial commit
This commit is contained in:
11
package/network/services/hostapd/files/wps-hotplug.sh
Normal file
11
package/network/services/hostapd/files/wps-hotplug.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
|
||||
cd /var/run/hostapd
|
||||
for socket in *; do
|
||||
[ -S "$socket" ] || continue
|
||||
hostapd_cli -i "$socket" wps_pbc
|
||||
done
|
||||
fi
|
||||
|
||||
return 0
|
||||
Reference in New Issue
Block a user