aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/hwdrivers.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-01 13:52:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-01 13:52:10 +0000
commit39497978865c49fd42b63379b93f2bca58518b9e (patch)
tree2f702801331dd886a47ae1c95986ed39db47f0b1 /main/openrc/hwdrivers.initd
parent6f6e2467917a263d14c833e107d2c6786188645a (diff)
main/openrc: hwdrivers: pull in fbcon if needed
Diffstat (limited to 'main/openrc/hwdrivers.initd')
-rw-r--r--main/openrc/hwdrivers.initd6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/openrc/hwdrivers.initd b/main/openrc/hwdrivers.initd
index 3d0ebf12b5a..d4551ca2345 100644
--- a/main/openrc/hwdrivers.initd
+++ b/main/openrc/hwdrivers.initd
@@ -22,6 +22,12 @@ start() {
# we run it twice so we detect all devices
find /sys -name modalias | xargs sort -u \
| xargs modprobe -a 2> /dev/null
+
+ # check if framebuffer drivers got pulled in
+ if [ -e /sys/module/fb ] && ! [ -e /sys/module/fbcon ]; then
+ modprobe fbcon
+ fi
+
eend 0
}