From 95b7c3a3daec1aa478840cfbfc0aef4be2b1b4a5 Mon Sep 17 00:00:00 2001 From: pspiagicw Date: Mon, 18 Jan 2021 13:59:03 +0530 Subject: [PATCH] Added OpenRC Script --- res/ly | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 res/ly diff --git a/res/ly b/res/ly new file mode 100755 index 0000000..612328e --- /dev/null +++ b/res/ly @@ -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}" +} +