diff options
Diffstat (limited to 'meta/recipes-core/psplash/files/psplash-init')
-rwxr-xr-x | meta/recipes-core/psplash/files/psplash-init | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-core/psplash/files/psplash-init b/meta/recipes-core/psplash/files/psplash-init new file mode 100755 index 0000000000..66c85e9335 --- /dev/null +++ b/meta/recipes-core/psplash/files/psplash-init | |||
@@ -0,0 +1,29 @@ | |||
1 | #!/bin/sh | ||
2 | ### BEGIN INIT INFO | ||
3 | # Provides: psplash | ||
4 | # Required-Start: | ||
5 | # Required-Stop: | ||
6 | # Default-Start: S | ||
7 | # Default-Stop: | ||
8 | ### END INIT INFO | ||
9 | |||
10 | read CMDLINE < /proc/cmdline | ||
11 | for x in $CMDLINE; do | ||
12 | case $x in | ||
13 | psplash=false) | ||
14 | echo "Boot splashscreen disabled" | ||
15 | exit 0; | ||
16 | ;; | ||
17 | esac | ||
18 | done | ||
19 | |||
20 | export TMPDIR=/mnt/.psplash | ||
21 | mount tmpfs -t tmpfs $TMPDIR -o,size=40k | ||
22 | |||
23 | rotation=0 | ||
24 | if [ -e /etc/rotation ]; then | ||
25 | read rotation < /etc/rotation | ||
26 | fi | ||
27 | |||
28 | /usr/bin/psplash --angle $rotation & | ||
29 | |||