summaryrefslogtreecommitdiff
path: root/modules.d/50plymouth
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2011-05-03 14:47:45 +0200
committerHarald Hoyer <harald@redhat.com>2011-05-03 14:49:45 +0200
commit424ecce63281760f86d258f3a12d45ff418402cd (patch)
treea7cb1f36421b6885e904d3c574c7ea9fc7d78245 /modules.d/50plymouth
parent6019e1053c08ebb2da5dfdde787479bbfdc8fc54 (diff)
downloaddracut-424ecce63281760f86d258f3a12d45ff418402cd.tar.gz
dracut-424ecce63281760f86d258f3a12d45ff418402cd.tar.bz2
dracut-424ecce63281760f86d258f3a12d45ff418402cd.zip
plymouth/gensplash: reset tty after plymouth messed with it
Diffstat (limited to 'modules.d/50plymouth')
-rwxr-xr-xmodules.d/50plymouth/plymouth-pretrigger.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules.d/50plymouth/plymouth-pretrigger.sh b/modules.d/50plymouth/plymouth-pretrigger.sh
index 222dc208..25ed06f9 100755
--- a/modules.d/50plymouth/plymouth-pretrigger.sh
+++ b/modules.d/50plymouth/plymouth-pretrigger.sh
@@ -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