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