mirror of https://github.com/fairyglade/ly.git
Fix dinit & s6 service + don't hardcode paths in runit service
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
f988bd334b
commit
1ee8010c24
|
@ -1,8 +1,8 @@
|
|||
type = process
|
||||
restart = true
|
||||
smooth-recovery = true
|
||||
command = $PREFIX_DIRECTORY/bin/$EXE_NAME
|
||||
command = $PREFIX_DIRECTORY/bin/$EXECUTABLE_NAME
|
||||
depends-on = login.target
|
||||
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
|
||||
|
|
|
@ -8,5 +8,5 @@ fi
|
|||
BAUD_RATE=38400
|
||||
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}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/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
|
||||
|
|
Loading…
Reference in New Issue