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 2fd839a..8b4751e 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