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() { ...@@ -33,10 +33,7 @@ eend() {
scan_drivers() { scan_drivers() {
if [ "$AUTODETECT" != no ] ; then if [ "$AUTODETECT" != no ] ; then
find /sys -name modalias | xargs sort | while read a ; do find /sys -name modalias | xargs sort -u | xargs modprobe -a 2> /dev/null
modprobe $a 2>/dev/null \
|| echo $a >> /tmp/hwdrivers.failed
done
fi 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