From af342c739f1aca623efca3e61faca5d41935f100 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 23 Sep 2008 22:24:43 +0000 Subject: fix clearing tty8 and switching to tty1 when splashy has been stopped --- scripts/splash.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/splash.sh b/scripts/splash.sh index eaeaa15..f3cacbe 100644 --- a/scripts/splash.sh +++ b/scripts/splash.sh @@ -57,12 +57,10 @@ splashy_check() { } splashy_exit() { - if [ "$splash_mode" = "splashy" ] && splashy_is_running; then - /sbin/splashy_update exit + if [ "$splash_mode" = "splashy" ]; then + splashy_is_running && /sbin/splashy_update exit clear >/dev/tty8 - if [ "$service" != "dm" ]; then - chvt 1 - fi + [ "$runlevel" != "5" ] && chvt 1 fi } -- cgit v1.2.1