Skip to content

Commit

Permalink
Merge pull request #1 from Cavernosa/patch-2
Browse files Browse the repository at this point in the history
Thanks this looks great!
  • Loading branch information
MadcowOG committed Jul 11, 2022
2 parents 7ba8b88 + cf3a87c commit 2bd7573
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions res/ly-openrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /sbin/openrc-run
#!/sbin/openrc-run

name="ly"
description="TUI Display Manager"
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2bd7573

Please sign in to comment.