Skip to content

Instantly share code, notes, and snippets.

@theMackabu
Created September 6, 2024 22:55
Show Gist options
  • Save theMackabu/46bac71db72d648984e4ce806cf60f4e to your computer and use it in GitHub Desktop.
Save theMackabu/46bac71db72d648984e4ce806cf60f4e to your computer and use it in GitHub Desktop.
#!/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