Guest User

plymouth-preview

a guest
Sep 23rd, 2020
3,740
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. check_root () {
  4.   if [ ! $(id -u) -eq 0 ]; then
  5.     echo "Please run as root"
  6.     exit
  7.   fi
  8. }
  9. check_root
  10. DURATION=$1
  11. if [ $# -ne 1 ];
  12. then
  13.   DURATION=5
  14. fi
  15. plymouthd; plymouth --show-splash
  16. for ((i=0; i<$DURATION; i++)); do
  17.   plymouth --update=duration$i;
  18.   sleep 1;
  19. done;
  20. plymouth --quit
  21.  
Advertisement
Add Comment
Please, Sign In to add comment