Added OpenRC Script

This commit is contained in:
pspiagicw 2021-01-18 13:59:03 +05:30
parent 77f6958241
commit 95b7c3a3da
1 changed files with 25 additions and 0 deletions

25
res/ly Executable file
View File

@ -0,0 +1,25 @@
#!/sbin/openrc-run
command=/usr/bin/ly
name="ly"
description="TUI display manager"
depend() {
after agetty
}
start() {
TERM_NAME=linux
BAUD_RATE=38400
if [ -x /sbin/getty -o -x /bin/getty ];then
GETTY=getty
# busybox
elif [ -x /sbin/agetty -o -x /bin/agetty ];then
GETTY=agetty
# util-linux
fi
exec setsid ${GETTY} -nl /usr/bin/ly tty1 "${BAUD_RATE}" "${TERM_NAME}"
}