From 71c0743143b4f25db42eb80893a5253a12650e7c Mon Sep 17 00:00:00 2001 From: mobinmob Date: Mon, 24 Aug 2020 16:43:21 +0300 Subject: [PATCH] New service: agetty-autologin@, based on the tty@ service --- usr/share/66/service/agetty-autologin@ | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 usr/share/66/service/agetty-autologin@ diff --git a/usr/share/66/service/agetty-autologin@ b/usr/share/66/service/agetty-autologin@ new file mode 100644 index 00000000..e3e46042 --- /dev/null +++ b/usr/share/66/service/agetty-autologin@ @@ -0,0 +1,15 @@ +#@I is the tty name in which agetty-autologin starts +[main] +@type = classic +@version = 2.1.0 +@description = "Autologin in @I" +@user = ( root ) +@options = ( env ) + +[start] +@execute = ( execl-cmdline -s { agetty ${cmd_args} -a ${autologin_user} @I } ) + +[environment] +cmd_args=!-J 38400 +#Replace autologin_user with the name of the user you want to autologin +autologin_user=!autologin_user