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