projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b13b2e
)
plymouth/plymouth-pretrigger.sh: get consoledev from /sys/class/tty/console/active
author
Harald Hoyer
<harald@redhat.com>
Wed, 9 May 2012 09:05:12 +0000
(11:05 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 9 May 2012 09:05:40 +0000
(11:05 +0200)
modules.d/50plymouth/plymouth-pretrigger.sh
patch
|
blob
|
history
diff --git
a/modules.d/50plymouth/plymouth-pretrigger.sh
b/modules.d/50plymouth/plymouth-pretrigger.sh
index
8fa0aec
..
483cc70
100755
(executable)
--- a/
modules.d/50plymouth/plymouth-pretrigger.sh
+++ b/
modules.d/50plymouth/plymouth-pretrigger.sh
@@
-19,7
+19,7
@@
if [ -x /bin/plymouthd ]; then
info "Starting plymouth daemon"
mkdir -m 0755 /run/plymouth
- consoledev=$(getarg console= | sed -e 's/,.*//')
+ read consoledev rest < /sys/class/tty/console/active
consoledev=${consoledev:-tty0}
[ -x /lib/udev/console_init -a -e "/dev/$consoledev" ] && /lib/udev/console_init "/dev/$consoledev"
[ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session --pid-file /run/plymouth/pid