Browse Source

fix a harmless warning

SVN-Revision: 6650
Felix Fietkau 18 years ago
parent
commit
437ffd0970
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/madwifi/files/lib/wifi/madwifi.sh

+ 1 - 1
package/madwifi/files/lib/wifi/madwifi.sh

@@ -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