2011-09-26 10:20:30 +02:00
|
|
|
#! /bin/bash
|
|
|
|
. /etc/rc.splash $1
|
2011-10-02 11:16:05 +02:00
|
|
|
export RUNLEVEL=$1
|
|
|
|
export PREVLEVEL=N
|
|
|
|
if [ "$1" == "5" ]; then
|
2011-10-26 15:48:17 +02:00
|
|
|
/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
|
2011-10-02 11:16:05 +02:00
|
|
|
splashtrigger "rlreached $1"
|
|
|
|
else
|
|
|
|
splashtrigger "rlchange $1"
|
|
|
|
splashtrigger "coolo"
|
|
|
|
fi
|