]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
plymouth/gensplash: reset tty after plymouth messed with it
authorHarald Hoyer <harald@redhat.com>
Tue, 3 May 2011 12:47:45 +0000 (14:47 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 3 May 2011 12:49:45 +0000 (14:49 +0200)
modules.d/50gensplash/gensplash-pretrigger.sh
modules.d/50plymouth/plymouth-pretrigger.sh

index b0330a4761fb5628cc7c3c7b2afb2da62d5aa15a..074aa7871cceeea8c0f6d05b2da84c2074fcc0bc 100755 (executable)
@@ -9,8 +9,9 @@ if getargbool 1 rd.splash -n rd_NO_SPLASH; then
 
     info "Starting Gentoo Splash"
 
-    [ -x /lib/udev/console_init ] && /lib/udev/console_init tty0
+    [ -x /lib/udev/console_init ] && /lib/udev/console_init /dev/tty0
     CDROOT=0
     . /lib/gensplash-lib.sh
     splash init
+    [ -x /lib/udev/console_init ] && /lib/udev/console_init /dev/tty0
 fi
index 222dc20839ace28432713ad875625e75de6e436a..25ed06f93de6696e3c490e2187480538e12c3ff6 100755 (executable)
@@ -18,7 +18,9 @@ if getargbool 1 rd.plymouth -n rd_NO_PLYMOUTH; then
 
     info "Starting plymouth daemon"
     mkdir -m 0755 /run/plymouth
-    [ -x /lib/udev/console_init ] && /lib/udev/console_init tty0
+    [ -x /lib/udev/console_init ] && /lib/udev/console_init /dev/tty0
     [ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session --pid-file /run/plymouth/pid
     /bin/plymouth --show-splash 2>&1 | vinfo
+    # reset tty after plymouth messed with it
+    [ -x /lib/udev/console_init ] && /lib/udev/console_init /dev/tty0
 fi