diff options
author | Jonathan Bauer | 2018-11-12 12:25:31 +0100 |
---|---|---|
committer | Jonathan Bauer | 2018-11-12 17:30:33 +0100 |
commit | 14fab902dc46a6d514d766acb5d38b876defcbfb (patch) | |
tree | 9d07fb628790e4e45527d2660931f4bcb2a4b57a /builder/modules.d/slx-splash/scripts | |
parent | [slx-splash] do not lead dracut into an shell (diff) | |
download | systemd-init-14fab902dc46a6d514d766acb5d38b876defcbfb.tar.gz systemd-init-14fab902dc46a6d514d766acb5d38b876defcbfb.tar.xz systemd-init-14fab902dc46a6d514d766acb5d38b876defcbfb.zip |
[slx-splash] restore cursor after splashscreen
Diffstat (limited to 'builder/modules.d/slx-splash/scripts')
-rw-r--r-- | builder/modules.d/slx-splash/scripts/restore-cursor.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/builder/modules.d/slx-splash/scripts/restore-cursor.sh b/builder/modules.d/slx-splash/scripts/restore-cursor.sh new file mode 100644 index 00000000..4ba9880d --- /dev/null +++ b/builder/modules.d/slx-splash/scripts/restore-cursor.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# +# The console cursor is disabled when starting the splash screen. +# This will add a drop-in to getty@.service to ensure the cursor +# is restored when starting gettys. + +mkdir -p "$NEWROOT/etc/systemd/system/getty@.service.d/" +cat <<- EOF > "$NEWROOT/etc/systemd/system/getty@.service.d/restore-cursor.conf" + [Service] + ExecStartPre=-/usr/bin/env bash -c "echo -en '\033c' > /dev/%I" +EOF |