From cf3a87c0b7074d00f1593cc9bc2c6224ee34899e Mon Sep 17 00:00:00 2001 From: Cavernosa <42952107+Cavernosa@users.noreply.github.com> Date: Sat, 9 Jul 2022 01:42:30 +0000 Subject: [PATCH] Fixes Fixed typo in line 16: /sbin/getty > /sbin/agetty Better CONFTTY command Change ${var} to just $var --- res/ly-openrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/res/ly-openrc b/res/ly-openrc index 199ee7bd..ad019580 100644 --- a/res/ly-openrc +++ b/res/ly-openrc @@ -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