summaryrefslogtreecommitdiff
path: root/recipes/psplash/psplash-omap3pandora/psplash-init
diff options
context:
space:
mode:
authorDavid-John Willis <John.Willis@Distant-earth.com>2009-10-28 09:11:26 +0000
committerKoen Kooi <koen@openembedded.org>2009-10-28 10:16:32 +0100
commitbee83ea1d917a276e4c8a945f95c76d10f5cf933 (patch)
tree32900612b0e0eed715204548a86935edc699a3e9 /recipes/psplash/psplash-omap3pandora/psplash-init
parent06b7f2e81a082a5ef40a32008e0e244fb9fe6050 (diff)
psplash-omap3pandora: Add psplash splashscreen for the omap3-pandora.
Diffstat (limited to 'recipes/psplash/psplash-omap3pandora/psplash-init')
-rw-r--r--recipes/psplash/psplash-omap3pandora/psplash-init24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/psplash/psplash-omap3pandora/psplash-init b/recipes/psplash/psplash-omap3pandora/psplash-init
new file mode 100644
index 0000000000..0409240232
--- /dev/null
+++ b/recipes/psplash/psplash-omap3pandora/psplash-init
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+if grep -qE '\s?psplash=false\s?' /proc/cmdline; then
+ echo "Boot splashscreen disabled"
+ exit 0;
+fi
+
+. /etc/init.d/functions
+. /etc/default/psplash
+
+case `machine_id` in
+ "hp_ipaq_h3100"|"hp_ipaq_h3800")
+ PARAMS='-a 90' ;;
+ "hp_ipaq_3600"|"hp_ipaq_3700"|"hp_ipaq_h3900"|"htc_universal"|*collie|*poodle|*akita|*spitz|*borzoi)
+ PARAMS='-a 270' ;;
+esac
+
+export TMPDIR=/mnt/.splash
+mount tmpfs -t tmpfs $TMPDIR -o,size=40k
+
+/usr/bin/psplash $PARAMS &
+
+# Timetrap against hanging with splash hiding console messages.
+(sleep 120; psplash-write "QUIT") &