From: Harald Hoyer Date: Wed, 9 May 2012 09:05:12 +0000 (+0200) Subject: plymouth/plymouth-pretrigger.sh: get consoledev from /sys/class/tty/console/active X-Git-Tag: 019~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3734f4ae4816c372427f99ab5f0dfd7f386c8222;p=thirdparty%2Fdracut.git plymouth/plymouth-pretrigger.sh: get consoledev from /sys/class/tty/console/active --- diff --git a/modules.d/50plymouth/plymouth-pretrigger.sh b/modules.d/50plymouth/plymouth-pretrigger.sh index 8fa0aecf2..483cc7084 100755 --- 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