summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichal Pokrywka <mpokrywka@hoga.pl>2008-10-13 02:08:52 +0200
committermaximilian attems <maks@debian.org>2008-12-15 11:11:22 +0100
commit87461ea463b943a9ccff96b2b36fcfbd66691a1a (patch)
tree6978aeedb1436de9a9184b29ce5648a6ddcb346d /scripts
parent3c620c38f29a7372e544f17a4fa5da55eabe30bf (diff)
downloadinitramfs-tools-87461ea463b943a9ccff96b2b36fcfbd66691a1a.tar.gz
initramfs-tools-87461ea463b943a9ccff96b2b36fcfbd66691a1a.zip
framebuffer: Add support for uvesafb
Uvesafb framebuffer driver needs v86d userspace program but when fb driver is modprobed at init-top stage of initrd, /dev/zero and /dev/mem are missing because udev have not been run yet.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/init-top/framebuffer7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/init-top/framebuffer b/scripts/init-top/framebuffer
index 21a6b19..4375dca 100755
--- a/scripts/init-top/framebuffer
+++ b/scripts/init-top/framebuffer
@@ -72,11 +72,16 @@ for x in $(cat /proc/cmdline); do
esac
done
-# Map command line name to module name
+# Map command line name to module name and other tweaks
case ${FB} in
matroxfb)
FB=matroxfb_base
;;
+uvesafb)
+ # v86d requires /dev/zero and dev/mem, but udev haven't been started yet
+ [ -e /dev/zero ] || mknod -m 0666 /dev/zero c 1 5
+ [ -e /dev/mem ] || mknod -m 0640 /dev/mem c 1 1
+ ;;
*)
;;
esac