2006-09-28 14:20:06 +00:00
|
|
|
#!/bin/sh
|
2008-07-03 15:24:48 +00:00
|
|
|
### BEGIN INIT INFO
|
|
|
|
# Provides: psplash
|
|
|
|
# Required-Start:
|
|
|
|
# Required-Stop:
|
|
|
|
# Default-Start: S
|
|
|
|
# Default-Stop:
|
|
|
|
### END INIT INFO
|
2006-09-28 14:20:06 +00:00
|
|
|
|
2008-08-19 21:42:36 +00:00
|
|
|
read CMDLINE < /proc/cmdline
|
|
|
|
for x in $CMDLINE; do
|
2006-12-14 11:49:37 +00:00
|
|
|
case $x in
|
|
|
|
psplash=false)
|
|
|
|
echo "Boot splashscreen disabled"
|
|
|
|
exit 0;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2006-09-28 14:20:06 +00:00
|
|
|
export TMPDIR=/mnt/.psplash
|
|
|
|
mount tmpfs -t tmpfs $TMPDIR -o,size=40k
|
|
|
|
|
2007-03-28 11:00:17 +00:00
|
|
|
rotation=0
|
|
|
|
if [ -e /etc/rotation ]; then
|
2008-08-19 21:42:36 +00:00
|
|
|
read rotation < /etc/rotation
|
2007-03-28 11:00:17 +00:00
|
|
|
fi
|
|
|
|
|
2007-03-28 11:16:55 +00:00
|
|
|
/usr/bin/psplash --angle $rotation &
|
2006-09-28 14:20:06 +00:00
|
|
|
|