I'm configuring TTY auto login, so I followed the official guide, created a file named autologin.conf in /etc/systemd/system/[email protected], containing the following lines:
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin XX --noclear %I 38400 linux
I did this for both tty1 and tty3.
Now when my system boots, I can see the bash prompt on tty1, but my autorun scripts for tty3 doesn't run at all. (The script is in ~/.bashrc, it runs if $(tty)
equals to /dev/tty3
)
Any ideas?
P.S If I modify [email protected] directly, adding the autologon, it works perfectly, the auto run scripts for tty3 executes.
EDIT
I also noticed if I press ALT + F3 manually, after switching to tty3, the script get executed as well.