diff options
author | maximilian attems <maks@debian.org> | 2008-12-15 11:31:15 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2008-12-15 11:31:15 +0100 |
commit | 7e82cbb4ff425ef0201e215566f17826311197c1 (patch) | |
tree | 7574b160ccb1be91dabc3067a58cddf8b096ef6d | |
parent | 6e5eab4ecdba250653b1572f09624c20bf98a09e (diff) | |
download | initramfs-tools-7e82cbb4ff425ef0201e215566f17826311197c1.tar.gz initramfs-tools-7e82cbb4ff425ef0201e215566f17826311197c1.zip |
Revert "framebuffer: Let udev create fb devices."
udev isn't started at this point and therefore can't create framebuffer
devices. This causes usplash not to run on PS3.
set sane permissions will making the char files.
This reverts commit 0aec8b0c22b7622841c4ab7a3b492b4d2657456f.
-rwxr-xr-x | scripts/init-top/framebuffer | 10 |
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 |