hostapd: change the wildcard for the hostapd control socket directory
[openwrt.git] / package / network / services / hostapd / files / wps-hotplug.sh
index b5376cc..058264a 100644 (file)
@@ -1,5 +1,7 @@
+#!/bin/sh
+
 if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
-       for dir in /var/run/hostapd-*; do
+       for dir in /var/run/hostapd*; do
                [ -d "$dir" ] || continue
                hostapd_cli -p "$dir" wps_pbc
        done