2013-03-13 18:11:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-07-08 18:36:17 +00:00
|
|
|
if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
|
2013-12-02 13:08:14 +00:00
|
|
|
for dir in /var/run/hostapd*; do
|
2010-07-08 18:36:17 +00:00
|
|
|
[ -d "$dir" ] || continue
|
|
|
|
hostapd_cli -p "$dir" wps_pbc
|
|
|
|
done
|
|
|
|
fi
|