]> git.kernelconcepts.de Git - meta-kc-bsp.git/blob - recipes-bsp/psplash/files/psplash-init
psplash-mucross: Add µCross modified psplash.
[meta-kc-bsp.git] / recipes-bsp / psplash / files / 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)
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 # Timetrap against hanging with splash hiding console messages.
24 (sleep 120; psplash-write "QUIT") &