Ooops - I'm sorry but the above patch does not work as expected, since grep finds itself allways. Here a fixed version:
Change
if [ -z "$DISPLAY" ] && ! pidof usplash >/dev/null; then
to
if ! ps -Ao comm,command | grep -q "^X.* vt$(fgconsole) " &&
! pidof usplash >/dev/null; then
(starting a new line after && should be OK)
Ooops - I'm sorry but the above patch does not work as expected, since grep finds itself allways. Here a fixed version:
Change
if [ -z "$DISPLAY" ] && ! pidof usplash >/dev/null; then
to
if ! ps -Ao comm,command | grep -q "^X.* vt$(fgconsole) " &&
! pidof usplash >/dev/null; then
(starting a new line after && should be OK)