Remove config TTY options in OpenRC & runit services

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion 2025-10-17 23:08:15 +02:00
parent 657daafec8
commit bb669c239c
No known key found for this signature in database
2 changed files with 2 additions and 8 deletions

View File

@ -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

View File

@ -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