mirror of https://github.com/fairyglade/ly.git
commit
2bd7573535
|
|
@ -1,4 +1,4 @@
|
||||||
#! /sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
name="ly"
|
name="ly"
|
||||||
description="TUI Display Manager"
|
description="TUI Display Manager"
|
||||||
|
|
@ -13,14 +13,14 @@ if [ -x /sbin/getty ] || [ -x /bin/getty ];
|
||||||
then
|
then
|
||||||
# busybox
|
# busybox
|
||||||
commandB="/sbin/getty"
|
commandB="/sbin/getty"
|
||||||
elif [ -x /sbin/getty ] || [ -x /bin/agetty ];
|
elif [ -x /sbin/agetty ] || [ -x /bin/agetty ];
|
||||||
then
|
then
|
||||||
# util-linux
|
# util-linux
|
||||||
commandUL="/sbin/agetty"
|
commandUL="/sbin/agetty"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Get the tty from the conf file
|
## Get the tty from the conf file
|
||||||
CONFTTY=$(cat /etc/ly/config.ini | grep tty | grep -v '#' | sed -e 's/tty = //' | sed -e 's/ //')
|
CONFTTY=$(cat /etc/ly/config.ini | sed -n 's/^tty.*=[^1-9]*// p')
|
||||||
|
|
||||||
## The execution vars
|
## The execution vars
|
||||||
# If CONFTTY is empty then default to 2
|
# If CONFTTY is empty then default to 2
|
||||||
|
|
@ -29,7 +29,7 @@ TERM=linux
|
||||||
BAUD=38400
|
BAUD=38400
|
||||||
# If we don't have getty then we should have agetty
|
# If we don't have getty then we should have agetty
|
||||||
command=${commandB:-$commandUL}
|
command=${commandB:-$commandUL}
|
||||||
command_args_foreground="-nl /usr/bin/ly ${TTY} ${BAUD} ${TERM}"
|
command_args_foreground="-nl /usr/bin/ly $TTY $BAUD $TERM"
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
after agetty
|
after agetty
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue