Browse Source

plymouth/plymouth-pretrigger.sh: get consoledev from /sys/class/tty/console/active

master
Harald Hoyer 13 years ago
parent
commit
3734f4ae48
  1. 2
      modules.d/50plymouth/plymouth-pretrigger.sh

2
modules.d/50plymouth/plymouth-pretrigger.sh

@ -19,7 +19,7 @@ if [ -x /bin/plymouthd ]; then @@ -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

Loading…
Cancel
Save