Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |