mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Fix dinit & s6 service + don't hardcode paths in runit service
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
type = process
|
type = process
|
||||||
restart = true
|
restart = true
|
||||||
smooth-recovery = true
|
smooth-recovery = true
|
||||||
command = $PREFIX_DIRECTORY/bin/$EXE_NAME
|
command = $PREFIX_DIRECTORY/bin/$EXECUTABLE_NAME
|
||||||
depends-on = login.target
|
depends-on = login.target
|
||||||
termsignal = HUP
|
termsignal = HUP
|
||||||
# ly needs access to the console while loginready already occupies it
|
# ly needs access to the console while login.target already occupies it
|
||||||
options = shares-console
|
options = shares-console
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ fi
|
|||||||
BAUD_RATE=38400
|
BAUD_RATE=38400
|
||||||
TERM_NAME=linux
|
TERM_NAME=linux
|
||||||
|
|
||||||
auxtty=$(/bin/cat $CONFIG_DIRECTORY/ly/config.ini 2>/dev/null 1| /bin/sed -n 's/\(^[[:space:]]*tty[[:space:]]*=[[:space:]]*\)\([[:digit:]][[:digit:]]*\)\(.*\)/\2/p')
|
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${auxtty:-$DEFAULT_TTY}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
#!/bin/execlineb -P
|
#!/bin/execlineb -P
|
||||||
exec agetty -L -8 -n -l $PREFIX_DIRECTORY/bin/$EXE_NAME tty$DEFAULT_TTY 115200
|
exec agetty -L -8 -n -l $PREFIX_DIRECTORY/bin/$EXECUTABLE_NAME tty$DEFAULT_TTY 115200
|
||||||
|
|||||||
Reference in New Issue
Block a user