mirror of https://github.com/fairyglade/ly.git
Remove config TTY options in OpenRC & runit services
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
657daafec8
commit
bb669c239c
|
@ -19,12 +19,8 @@ then
|
||||||
commandUL="/sbin/agetty"
|
commandUL="/sbin/agetty"
|
||||||
fi
|
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
|
## The execution vars
|
||||||
# If CONFTTY is empty then default to $DEFAULT_TTY
|
TTY="tty$DEFAULT_TTY"
|
||||||
TTY="tty${CONFTTY:-$DEFAULT_TTY}"
|
|
||||||
TERM=linux
|
TERM=linux
|
||||||
BAUD=38400
|
BAUD=38400
|
||||||
# If we don't have getty then we should have agetty
|
# If we don't have getty then we should have agetty
|
||||||
|
|
|
@ -7,6 +7,4 @@ fi
|
||||||
|
|
||||||
BAUD_RATE=38400
|
BAUD_RATE=38400
|
||||||
TERM_NAME=linux
|
TERM_NAME=linux
|
||||||
|
TTY=tty$DEFAULT_TTY
|
||||||
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}
|
|
||||||
|
|
Loading…
Reference in New Issue