From 679deba39e3f875834d68d50f6cac14f01b3f67e Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 2 Aug 2020 20:17:22 +0200 Subject: [PATCH] correct void autologin --- distros/void/autologin.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/distros/void/autologin.md b/distros/void/autologin.md index 5a8b1b2..c2a148c 100644 --- a/distros/void/autologin.md +++ b/distros/void/autologin.md @@ -3,12 +3,20 @@ Make the autologin service: > cp -R /etc/sv/agetty-tty1 /etc/sv/agetty-autologin-tty1 -> echo "GETTY_ARGS="--autologin yourusernamehere --noclear" -> BAUD_RATE=38400 -> TERM_NAME=linux" > /etc/sv/agetty-autologin-tty1/conf +``` -> rm /var/service/agetty-tty1 -> ln -s /etc/sv/agetty-autologin-tty1 /var/service +if [ -x /sbin/agetty -o -x /bin/agetty ]; then + # util-linux specific settings + if [ "${tty}" = "tty1" ]; then + GETTY_ARGS="--noclear" + fi +fi + +GETTY_ARGS="--autologin [ your username ] --noclear" +BAUD_RATE=38400 +TERM_NAME=linux + +``` Then stick this at the end of the bashrc: