summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2015-02-04 18:18:39 +0100
committerJonathan Bauer2015-02-04 18:18:39 +0100
commit668438ba6811d7d08de4d352021c343434f12f1b (patch)
treef621beab624eec3c9e15f90473b3c2794839db46
parent[sshd-freiburg] iptable rule to filter out incoming connections on port 22 wh... (diff)
downloadtm-scripts-668438ba6811d7d08de4d352021c343434f12f1b.tar.gz
tm-scripts-668438ba6811d7d08de4d352021c343434f12f1b.tar.xz
tm-scripts-668438ba6811d7d08de4d352021c343434f12f1b.zip
[systemd] force reset on the tty before it is spawned
-rw-r--r--remote/modules/systemd/data/usr/lib/systemd/system/getty@.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote/modules/systemd/data/usr/lib/systemd/system/getty@.service b/remote/modules/systemd/data/usr/lib/systemd/system/getty@.service
index 2d2940e1..772566d6 100644
--- a/remote/modules/systemd/data/usr/lib/systemd/system/getty@.service
+++ b/remote/modules/systemd/data/usr/lib/systemd/system/getty@.service
@@ -26,8 +26,9 @@ ConditionPathExists=/dev/tty0
[Service]
ExecStartPre=-/opt/openslx/bin/killall fbsplash
+ExecStartPre=-/bin/bash -c "echo -e '\033c' > /dev/%i"
# the VT is cleared by TTYVTDisallocate
-ExecStart=-/sbin/agetty --noclear %I 38400 linux
+ExecStart=-/sbin/agetty %I 38400 linux
Type=idle
Restart=always
RestartSec=0