diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-09-23 22:24:43 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-09-23 22:24:43 +0000 |
commit | af342c739f1aca623efca3e61faca5d41935f100 (patch) | |
tree | 032a3e740819e4ec323a623030863eade0aaf901 | |
parent | 7702fc68c1fe43d229190957e900747c0d5639cb (diff) | |
download | bootsplash-af342c739f1aca623efca3e61faca5d41935f100.tar bootsplash-af342c739f1aca623efca3e61faca5d41935f100.tar.gz bootsplash-af342c739f1aca623efca3e61faca5d41935f100.tar.bz2 bootsplash-af342c739f1aca623efca3e61faca5d41935f100.tar.xz bootsplash-af342c739f1aca623efca3e61faca5d41935f100.zip |
fix clearing tty8 and switching to tty1 when splashy has been stopped
-rw-r--r-- | scripts/splash.sh | 8 |
1 files 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 } |