psplash-omap3pandora: Update pandora splash screen.
[openembedded.git] / recipes / psplash / psplash-omap3pandora / psplash-init
1 #!/bin/sh 
2
3 if grep -qE '\s?psplash=false\s?' /proc/cmdline; then
4         echo "Boot splashscreen disabled"
5         exit 0;
6 fi
7
8 . /etc/init.d/functions
9 . /etc/default/psplash
10
11 case `machine_id` in
12     "hp_ipaq_h3100"|"hp_ipaq_h3800") 
13         PARAMS='-a 90' ;;
14     "hp_ipaq_3600"|"hp_ipaq_3700"|"hp_ipaq_h3900"|"htc_universal"|*collie|*poodle|*akita|*spitz|*borzoi|*pandora)
15         PARAMS='-a 270' ;;
16 esac
17
18 export TMPDIR=/mnt/.splash
19 mount tmpfs -t tmpfs $TMPDIR -o,size=40k
20
21 /usr/bin/psplash $PARAMS &
22
23 # Timetraps against hanging with splash hiding console messages in the end.
24 # As the first load takes a while to setup packages echo some messages.
25 (sleep 60; psplash-write "MSG Setting up system.") &
26 (sleep 75; psplash-write "MSG This will take a while the 1st time you use your unit.") &
27 (sleep 90; psplash-write "MSG Reticulating Splines.") &
28 (sleep 120; psplash-write "MSG All your base are belong to us.") &
29 (sleep 180; psplash-write "MSG Still going, yep, the 1st boot is a big one.") &
30 (sleep 360; psplash-write "MSG Almost done! Thanks.") &
31 (sleep 2000; psplash-write "QUIT") &