SHA256
1
0
forked from pool/systemd
systemd/systemd-bootsplash

22 lines
475 B
Plaintext
Raw Normal View History

#! /bin/bash
. /etc/rc.splash $1
export RUNLEVEL=$1
export PREVLEVEL=N
if [ "$1" == "5" ]; then
/bin/systemctl status --no-pager default.target | grep -q graphical.target
if [ $? -eq 0 ]; then
declare -i timeout
timeout=0
console=`fgconsole`
while [ $console -eq 1 -a $timeout -lt 30 ] ; do
sleep 1
timeout+=1
console=`fgconsole`
done
fi
splashtrigger "rlreached $1"
else
splashtrigger "rlchange $1"
splashtrigger "coolo"
fi