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
1 changed files with 1 additions and 4 deletions

View File

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