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. /etc/default/rcS 11export PSPLASH_FIFO_DIR 12 13if [ ! -e /dev/fb0 ]; then 14 echo "Framebuffer /dev/fb0 not detected" 15 echo "Boot splashscreen disabled" 16 exit 0; 17fi 18 19read CMDLINE < /proc/cmdline 20for x in $CMDLINE; do 21 case $x in 22 psplash=false) 23 echo "Boot splashscreen disabled" 24 exit 0; 25 ;; 26 esac 27done 28 29[ -d $PSPLASH_FIFO_DIR ] || mkdir -p $PSPLASH_FIFO_DIR 30if ! mountpoint -q $PSPLASH_FIFO_DIR; then 31 mount tmpfs -t tmpfs $PSPLASH_FIFO_DIR -o,size=40k 32fi 33 34rotation=0 35if [ -e /etc/rotation ]; then 36 read rotation < /etc/rotation 37fi 38 39/usr/bin/psplash --angle $rotation & 40 41