home/bin/plymouth.sh
2021-01-24 15:16:13 +01:00

28 lines
417 B
Bash
Executable file

#!/bin/bash
## Preview Plymouth Splash ##
## by _khAttAm_ ##
## www.khattam.info ##
## License: GPL v3 ##
chk_root () {
if [ ! $( id -u ) -eq 0 ]; then
echo Must be run as root
exit
fi
}
chk_root
DURATION=$1
if [ $# -ne 1 ]; then
DURATION=5
fi
plymouthd
plymouth --show-splash
for ((I=0; I<$DURATION; I++)); do
plymouth --update=test$I;
sleep 1;
done;
plymouth quit