blob: 7053ac62d87ff93eb236fdced2e225a45ed1b5ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#! /usr/bin/env dash
# shellcheck source=/dev/null
. %SHELL_LIBRARY_PATH
## 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 1
fi
}
chk_root
DURATION=$1
if [ $# -ne 1 ]; then
DURATION=5
fi
plymouthd; plymouth --show-splash ;
for i in $(seq 1 $DURATION); do
plymouth --update=test"$i" ; sleep 1;
done;
plymouth quit
|