runit-service-scripts/usr/lib/runit/sv/agetty-generic/run
2024-04-06 19:36:11 +03:00

18 lines
339 B
Bash
Executable file

#!/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
## from void below
## exec chpst -P ${GETTY} ${GETTY_ARGS} \
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"