summaryrefslogtreecommitdiff
path: root/packages/psplash/files/psplash-init
blob: 5587346cb107ced2d85a0347c19eabdb923f82b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh 

for x in $(cat /proc/cmdline); do
        case $x in
        psplash=false)
		echo "Boot splashscreen disabled" 
		exit 0;
                ;;
        esac
done

psplash_args=''
case "`grep ^Hardware /proc/cpuinfo|cut -d: -f2 |tr A-Z a-z`" in
 "hp ipaq h3100"|"hp ipaq h3800") pspash_args='-a 90' ;;
 "hp ipaq 3600"|"hp ipaq 3700"|"hp ipaq h3900"|"htc universal"|*collie|*poodle|*akita|*spitz|*borzoi) psplash_args='-a 270' ;;
esac

export TMPDIR=/mnt/.psplash
mount tmpfs -t tmpfs $TMPDIR -o,size=40k

/usr/bin/psplash $psplash_args &

(sleep 120; psplash-write "QUIT") &