fix a harmless warning
authorFelix Fietkau <nbd@openwrt.org>
Fri, 23 Mar 2007 16:48:43 +0000 (16:48 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 23 Mar 2007 16:48:43 +0000 (16:48 +0000)
SVN-Revision: 6650

package/madwifi/files/lib/wifi/madwifi.sh

index 2fd839a283e894c39dadd6be6045365bb9d9112f..8b4751ef73dcf3992f2e8ef31c767fb7cfb76c54 100755 (executable)
@@ -231,7 +231,7 @@ EOF
 detect_atheros() {
        cd /proc/sys/dev
        [ -d ath ] || return
-       for dev in wifi*; do
+       for dev in $(ls wifi* 2>&-); do
                config_get type "$dev" type
                [ "$type" = atheros ] && return
                cat <<EOF