projects
/
openwrt
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uqmi: bump package release
[openwrt/.git]
/
package
/
network
/
services
/
hostapd
/
files
/
wps-hotplug.sh
diff --git
a/package/network/services/hostapd/files/wps-hotplug.sh
b/package/network/services/hostapd/files/wps-hotplug.sh
index 058264a8dbbcffdebd038e5d9028da50c6592f25..24af80e55bec2915fc038c99354a4aa8170b0799 100644
(file)
--- a/
package/network/services/hostapd/files/wps-hotplug.sh
+++ b/
package/network/services/hostapd/files/wps-hotplug.sh
@@
-1,8
+1,11
@@
#!/bin/sh
if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
#!/bin/sh
if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
- for dir in /var/run/hostapd*; do
- [ -d "$dir" ] || continue
- hostapd_cli -p "$dir" wps_pbc
+ cd /var/run/hostapd
+ for socket in *; do
+ [ -S "$socket" ] || continue
+ hostapd_cli -i "$socket" wps_pbc
done
fi
done
fi
+
+return 0