summaryrefslogtreecommitdiff
path: root/initramfs-init
diff options
context:
space:
mode:
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
}