aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/hwdrivers.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/openrc/hwdrivers.initd')
-rw-r--r--main/openrc/hwdrivers.initd9
1 files changed, 4 insertions, 5 deletions
diff --git a/main/openrc/hwdrivers.initd b/main/openrc/hwdrivers.initd
index d4551ca234..86b78e2b6f 100644
--- a/main/openrc/hwdrivers.initd
+++ b/main/openrc/hwdrivers.initd
@@ -14,14 +14,13 @@ start() {
ewarn "Autodetection of hardware disabled from boot cmdline"
return 0
fi
-
ebegin "Loading hardware drivers"
- find /sys -name modalias | xargs sort -u \
- | xargs modprobe -a 2> /dev/null
+ find /sys -name modalias -type f -print0 | xargs -0 sort -u \
+ | xargs modprobe -b -a 2> /dev/null
# we run it twice so we detect all devices
- find /sys -name modalias | xargs sort -u \
- | xargs modprobe -a 2> /dev/null
+ find /sys -name modalias -type f -print0 | xargs -0 sort -u \
+ | xargs modprobe -b -a 2> /dev/null
# check if framebuffer drivers got pulled in
if [ -e /sys/module/fb ] && ! [ -e /sys/module/fbcon ]; then