Author: nbd Date: 2016-01-21 16:51:52 +0100 (Thu, 21 Jan 2016) New Revision: 48439
Modified: trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh Log: mac80211: fix check for existing config section from r48426 Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh =================================================================== --- trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh 2016-01-21 15:37:43 UTC (rev 48438) +++ trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh 2016-01-21 15:51:52 UTC (rev 48439) @@ -9,9 +9,9 @@ local devpath config_get devpath "$device" path [ -n "$devpath" ] && { - for _phy in /sys/devices/$devpath/ieee80211/phy*; do - case "$(readlink -f /sys/class/ieee80211/$_phy/device)" in - *$devpath) return 0;; + for phy in $(ls /sys/class/ieee80211 2>/dev/null); do + case "$(readlink -f /sys/class/ieee80211/$phy/device)" in + *$devpath) return;; esac done } _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
