From: Felix Fietkau Date: Fri, 23 Mar 2007 16:48:43 +0000 (+0000) Subject: fix a harmless warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=437ffd097074a8d756bcfaad18ca7df8388b1701;p=openwrt%2Fstaging%2Frobimarko.git fix a harmless warning SVN-Revision: 6650 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 2fd839a283..8b4751ef73 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/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 <