diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-05 14:03:01 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-05 14:04:23 +0100 |
commit | 90e8b091cd1484e0a7b28ee905bd792e4b12d56c (patch) | |
tree | cefcc52e9eb824548ce63e319fce3881a25d4b0d /main/openrc/hwdrivers.initd | |
parent | ba39f71b2a8dfd155684df4b01f098039b68389e (diff) | |
download | aports-90e8b091cd1484e0a7b28ee905bd792e4b12d56c.tar.bz2 aports-90e8b091cd1484e0a7b28ee905bd792e4b12d56c.tar.xz |
openrc: hwdrivers: respect blacklist and fix for whitepaces in /sys paths
Diffstat (limited to 'main/openrc/hwdrivers.initd')
-rw-r--r-- | main/openrc/hwdrivers.initd | 9 |
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 |