From e93ecc6535fe1c99d93dfedf3f97af47f0f88887 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 26 Feb 2009 10:52:36 +0200 Subject: [PATCH] initramfs-init: optimize probing of hardware drivers --- initramfs-init | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/initramfs-init b/initramfs-init index 2a7ef99..841e075 100755 --- a/initramfs-init +++ b/initramfs-init @@ -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 }