sysvinit: add check for no X11 to disbale psplash
Add a check to the rc script to check if the /etc/init.d/xserver-nodm script exists and is executable and not disable psplash if it is, otherwise disable pspalsh since we do not have X installed. Fixed [BUG #457] Signed-off-by: Saul Wold <Saul.Wold@intel.com>
This commit is contained in:
parent
cb34a1496a
commit
deba7adc4b
|
@ -171,9 +171,9 @@ startup() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Uncomment to cause psplash to exit manually, otherwise it exits when it sees a VC switch
|
#Uncomment to cause psplash to exit manually, otherwise it exits when it sees a VC switch
|
||||||
#if [ "x$runlevel" != "xS" ]; then
|
if [ "x$runlevel" != "xS" ] && [ ! -x /etc/init.d/xserver-nodm ]; then
|
||||||
# if type psplash-write >/dev/null 2>&1; then
|
if type psplash-write >/dev/null 2>&1; then
|
||||||
# TMPDIR=/mnt/.psplash psplash-write "QUIT" || true
|
TMPDIR=/mnt/.psplash psplash-write "QUIT" || true
|
||||||
# umount /mnt/.psplash
|
umount /mnt/.psplash
|
||||||
# fi
|
fi
|
||||||
#fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue