wireless driver is now printed in boot log

This commit is contained in:
Calin Crisan 2016-03-18 20:28:04 +02:00
parent dca861266c
commit 1e28728670

View File

@ -67,6 +67,8 @@ start() {
fi
done
module=$(basename $(readlink /sys/class/net/$iface/device/driver/module 2>/dev/null) 2>/dev/null)
iwconfig $iface power off &> /dev/null
$prog -i$iface -c$conf -D$driver -B &> $log
count=0
@ -78,7 +80,7 @@ start() {
fi
if [ $count -gt $link_watch_timeout ] || ! pidof wpa_supplicant > /dev/null; then
msg_fail
test -n "$module" && msg_fail "failed ($module)"|| msg_fail
return 1
fi
@ -89,7 +91,7 @@ start() {
watch &
fi
msg_done
test -n "$module" && msg_done "done ($module)"|| msg_done
}
stop() {