Commit e93ecc65 authored by Timo Teräs's avatar Timo Teräs

initramfs-init: optimize probing of hardware drivers

parent 69608297
......@@ -33,10 +33,7 @@ eend() {
scan_drivers() {
if [ "$AUTODETECT" != no ] ; then
find /sys -name modalias | xargs sort | while read a ; do
modprobe $a 2>/dev/null \
|| echo $a >> /tmp/hwdrivers.failed
done
find /sys -name modalias | xargs sort -u | xargs modprobe -a 2> /dev/null
fi
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment