hostapd: change the wildcard for the hostapd control socket directory
authorFelix Fietkau <nbd@openwrt.org>
Mon, 2 Dec 2013 13:08:14 +0000 (13:08 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 2 Dec 2013 13:08:14 +0000 (13:08 +0000)
prepare for using /var/run/hostapd instead of /var/run/hostapd-phy*

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38986

package/network/services/hostapd/files/wps-hotplug.sh

index ffd3cf929bb4a1bdf9f4de95bc4f11e3f1e59d26..058264a8dbbcffdebd038e5d9028da50c6592f25 100644 (file)
@@ -1,7 +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