mirror of https://github.com/fairyglade/ly.git
Added OpenRC Script
This commit is contained in:
parent
77f6958241
commit
95b7c3a3da
|
|
@ -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}"
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue