summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/init-top/framebuffer10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/init-top/framebuffer b/scripts/init-top/framebuffer
index 4375dca..0ed798e 100755
--- a/scripts/init-top/framebuffer
+++ b/scripts/init-top/framebuffer
@@ -90,3 +90,13 @@ if [ -n "${FB}" ]; then
modprobe fbcon
modprobe ${FB} ${OPTS}
fi
+
+if [ -e /proc/fb ]; then
+ while read fbno desc; do
+ if [ $(($fbno < 32)) ]; then
+ mknod -m 0640 /dev/fb${fbno} c 29 ${fbno}
+ fi
+ done < /proc/fb
+else
+ mknod -m 0640 /dev/fb0 c 29 0
+fi