summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/splashy/splashy.initcpio_hook
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-02-11 07:29:38 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-02-11 07:29:38 (GMT)
commit09b14aa48e621e4263c095769bbd2697893eef8d (patch)
tree540e7da12e13804e73bc93641f45fa5e26a35ef4 /abs/core-testing/splashy/splashy.initcpio_hook
parent31b573e6bbe5a38097d3dbe1c45b6ddf09864dec (diff)
downloadlinhes_pkgbuild-09b14aa48e621e4263c095769bbd2697893eef8d.zip
linhes_pkgbuild-09b14aa48e621e4263c095769bbd2697893eef8d.tar.gz
linhes_pkgbuild-09b14aa48e621e4263c095769bbd2697893eef8d.tar.bz2
Needed for Splashy.
Diffstat (limited to 'abs/core-testing/splashy/splashy.initcpio_hook')
-rwxr-xr-xabs/core-testing/splashy/splashy.initcpio_hook48
1 files changed, 48 insertions, 0 deletions
diff --git a/abs/core-testing/splashy/splashy.initcpio_hook b/abs/core-testing/splashy/splashy.initcpio_hook
new file mode 100755
index 0000000..5e960b9
--- /dev/null
+++ b/abs/core-testing/splashy/splashy.initcpio_hook
@@ -0,0 +1,48 @@
+# vim: set ft=sh:
+run_hook() {
+ [ -x /sbin/splashy ] || return
+
+ SPLASH=false
+ SINGLE=false
+
+ for x in $(cat /proc/cmdline); do
+ case $x in
+ single)
+ SINGLE=true
+ ;;
+ splash)
+ SPLASH=true
+ ;;
+ nosplash)
+ SPLASH=false
+ ;;
+ esac
+ done
+
+ [ "${SINGLE}" = "false" ] || return
+ [ "${SPLASH}" = "true" ] || return
+
+#if [ -s /proc/fb ]; then
+# while read fbno desc; do
+# mknod /dev/fb${fbno} c 29 ${fbno}
+# done < /proc/fb
+#else
+# 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
+
+ msg -n ":: Loading Splashy..."
+
+ if [ -x /sbin/splashy_chvt ]; then
+ /sbin/splashy_chvt 8
+ fi
+
+ /sbin/splashy boot
+ sleep 1 #we need a better solution
+
+ msg "done."
+}