Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fw-initramfs.git;a=commitdiff;h=f43acd8919b6a26a4110940f58f7f499f66a44a3

commit f43acd8919b6a26a4110940f58f7f499f66a44a3
Author: bouleetbil <[email protected]>
Date:   Mon Feb 22 08:26:14 2010 +0100

init_functions.sh
*create devices for splashy
*verify splashy bin

diff --git a/init_functions.sh b/init_functions.sh
index 715fc48..881d4b1 100644
--- a/init_functions.sh
+++ b/init_functions.sh
@@ -200,8 +200,26 @@ verbose_kmsg() {
}

splash() {
-       if [ -f /sbin/splashy ]
-       then
-               splashy
+       grep -q nosplashy /proc/cmdline && return
+       if [ -e /proc/fb ]; then
+               while read fbno desc; do
+                       test -c /dev/fb${fbno} || \
+                         mknod /dev/fb${fbno} c 29 ${fbno}
+               done < /proc/fb
+       else
+               test -c /dev/fb0 || mknod /dev/fb0 c 29 0
fi
+
+       for i in 0 1 2 3 4 5 6 7 8; do
+               test -c /dev/tty${i} || \
+                   mknod /dev/tty${i} c 4 ${i}
+       done
+
+
+       test -x /sbin/splashy || return
+
+       #grep -q '\(VESA\|VGA\)' /proc/fb || return
+
+       /sbin/splashy boot
+
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to