Merge pull request #1 from Cavernosa/patch-2

Thanks this looks great!
This commit is contained in:
MadcowOG 2022-07-11 01:45:00 +00:00 committed by GitHub
commit 2bd7573535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#! /sbin/openrc-run
#!/sbin/openrc-run
name="ly"
description="TUI Display Manager"
@ -13,14 +13,14 @@ if [ -x /sbin/getty ] || [ -x /bin/getty ];
then
# busybox
commandB="/sbin/getty"
elif [ -x /sbin/getty ] || [ -x /bin/agetty ];
elif [ -x /sbin/agetty ] || [ -x /bin/agetty ];
then
# util-linux
commandUL="/sbin/agetty"
fi
## Get the tty from the conf file
CONFTTY=$(cat /etc/ly/config.ini | grep tty | grep -v '#' | sed -e 's/tty = //' | sed -e 's/ //')
CONFTTY=$(cat /etc/ly/config.ini | sed -n 's/^tty.*=[^1-9]*// p')
## The execution vars
# If CONFTTY is empty then default to 2
@ -29,7 +29,7 @@ TERM=linux
BAUD=38400
# If we don't have getty then we should have agetty
command=${commandB:-$commandUL}
command_args_foreground="-nl /usr/bin/ly ${TTY} ${BAUD} ${TERM}"
command_args_foreground="-nl /usr/bin/ly $TTY $BAUD $TERM"
depend() {
after agetty