summaryrefslogtreecommitdiff
path: root/initramfs-init
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-02-26 10:52:36 +0200
committerTimo Teras <timo.teras@iki.fi>2009-02-26 10:52:36 +0200
commite93ecc6535fe1c99d93dfedf3f97af47f0f88887 (patch)
treeb214e719508f9edf587ac35160e0769a7d01388a /initramfs-init
parent696082977f39fe5715bbd4a0d6e34cc0c143e826 (diff)
downloadabuild-e93ecc6535fe1c99d93dfedf3f97af47f0f88887.tar.gz
abuild-e93ecc6535fe1c99d93dfedf3f97af47f0f88887.tar.bz2
abuild-e93ecc6535fe1c99d93dfedf3f97af47f0f88887.tar.xz
abuild-e93ecc6535fe1c99d93dfedf3f97af47f0f88887.zip
initramfs-init: optimize probing of hardware drivers
Diffstat (limited to 'initramfs-init')
-rwxr-xr-xinitramfs-init5
1 files changed, 1 insertions, 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
}