mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-21 03:34:54 +00:00
* Make it easy to install ly on runit systems e.g. void * Tidy up runit section in readme Co-authored-by: Daniel Haarhoff <daniel@rknt.de>
15 lines
287 B
Bash
15 lines
287 B
Bash
#!/bin/sh
|
|
|
|
tty=${PWD##*-}
|
|
|
|
[ -r conf ] && . ./conf
|
|
|
|
if [ -x /sbin/getty -o -x /bin/getty ]; then
|
|
# busybox
|
|
GETTY=getty
|
|
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
|
|
# util-linux
|
|
GETTY=agetty
|
|
fi
|
|
|
|
exec setsid ${GETTY} ${GETTY_ARGS} -nl /usr/bin/ly tty2 "${BAUD_RATE}" "${TERM_NAME}" |