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

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

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

rotation=0
if [ -e /etc/rotation ]; then
	rotation=`cat /etc/rotation`
fi

/usr/bin/psplash --angle $rotation &