From bb669c239ca0e3bce434ad50809159f1646712fb Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Fri, 17 Oct 2025 23:08:15 +0200 Subject: [PATCH] Remove config TTY options in OpenRC & runit services Signed-off-by: AnErrupTion --- res/ly-openrc | 6 +----- res/ly-runit-service/conf | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/res/ly-openrc b/res/ly-openrc index ac6ae0f..f6d222c 100644 --- a/res/ly-openrc +++ b/res/ly-openrc @@ -19,12 +19,8 @@ then commandUL="/sbin/agetty" fi -## Get the tty from the conf file -CONFTTY=$(cat $CONFIG_DIRECTORY/ly/config.ini | sed -n 's/^tty.*=[^1-9]*// p') - ## The execution vars -# If CONFTTY is empty then default to $DEFAULT_TTY -TTY="tty${CONFTTY:-$DEFAULT_TTY}" +TTY="tty$DEFAULT_TTY" TERM=linux BAUD=38400 # If we don't have getty then we should have agetty diff --git a/res/ly-runit-service/conf b/res/ly-runit-service/conf index fca1c76..ded7001 100644 --- a/res/ly-runit-service/conf +++ b/res/ly-runit-service/conf @@ -7,6 +7,4 @@ fi BAUD_RATE=38400 TERM_NAME=linux - -auxtty=$(cat $CONFIG_DIRECTORY/ly/config.ini 2>/dev/null 1| sed -n 's/\(^[[:space:]]*tty[[:space:]]*=[[:space:]]*\)\([[:digit:]][[:digit:]]*\)\(.*\)/\2/p') -TTY=tty${auxtty:-$DEFAULT_TTY} +TTY=tty$DEFAULT_TTY