Skip to content
Snippets Groups Projects
Commit e93ecc65 authored by Timo Teräs's avatar Timo Teräs
Browse files

initramfs-init: optimize probing of hardware drivers

parent 69608297
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment