mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
* Fix the script installation path (install everything only on /etc/sv/ly) * Update the runit scripts to get the TTY value from the /etc/ly/config.ini file * Update readme.md
14 lines
276 B
Bash
14 lines
276 B
Bash
#!/bin/sh
|
|
|
|
[ -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 "${TTY}" "${BAUD_RATE}" "${TERM_NAME}"
|