Auto Login in shell script

Hi
for auto log in
I modified the file '/lib/systemd/system/serial-getty@.service

ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM

to

ExecStart=-/sbin/agetty -a debian -s %I 115200

Now I want to auto log-in with shell script
How can I make shell script for auto log in?
Could you let me know about it?

Regards.

Hi @taek8461, I’m confused, why does your “script” need to physically login? The concept of a “Login” is more for external input. Your “script” is already present on the device and “running” from another service activating it. I guess more information is really required, are you trying to dump data to tty or another location?

Regards,

1 Like

Hi RobertCNelson
I understanded what I shoud do from your answers to my other topic
Thank you for your answer~

Regards.