Created
September 6, 2024 22:55
-
-
Save theMackabu/46bac71db72d648984e4ce806cf60f4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment