mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
e7b34b2b0d
this is required by the new button timeout feature Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46471
12 lines
194 B
Bash
12 lines
194 B
Bash
#!/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
|