1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-01 09:03:49 +03:00

[package] madwifi: Fix unique device autodetection

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26164 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acinonyx 2011-03-15 00:43:50 +00:00
parent 9c435c9f94
commit ab68301976

View File

@ -406,7 +406,7 @@ enable_atheros() {
done
}
check_device() {
check_atheros_device() {
[ ${1%[0-9]} = "wifi" ] && config_set "$1" phy "$1"
config_get phy "$1" phy
[ -z "$phy" ] && {
@ -429,7 +429,7 @@ detect_atheros() {
[ -d ath ] || return
for dev in $(ls -d wifi* 2>&-); do
found=0
config_foreach check_device wifi-device
config_foreach check_atheros_device wifi-device
[ "$found" -gt 0 ] && continue
devname="$(cat /proc/sys/dev/$dev/dev_name)"