Skip to content

Instantly share code, notes, and snippets.

@nextgenthemes
Created April 16, 2013 14:09
Show Gist options
  • Select an option

  • Save nextgenthemes/5396198 to your computer and use it in GitHub Desktop.

Select an option

Save nextgenthemes/5396198 to your computer and use it in GitHub Desktop.

Revisions

  1. nextgenthemes created this gist Apr 16, 2013.
    25 changes: 25 additions & 0 deletions plymouth-preview.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    #!/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=10
    fi

    plymouthd; plymouth --show-splash ; for ((I=0; I<$DURATION; I++)); do plymouth --update=test$I ; sleep 1; done; plymouth quit