22 lines
356 B
Bash
Executable File
22 lines
356 B
Bash
Executable File
#!/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 &
|
|
|