initramfs-init: optimize probing of hardware drivers

This commit is contained in:
Timo Teras 2009-02-26 10:52:36 +02:00
parent 696082977f
commit e93ecc6535

View File

@ -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
} }