packages: sort network related packages into package/network/
[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
new file mode 100644 (file)
index 0000000..b5376cc
--- /dev/null
@@ -0,0 +1,6 @@
+if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
+       for dir in /var/run/hostapd-*; do
+               [ -d "$dir" ] || continue
+               hostapd_cli -p "$dir" wps_pbc
+       done
+fi