This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
2023-09-11 07:22:17 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
tty=$1
|
|
|
|
|
|
|
|
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
|
|
|
|
# util-linux specific settings
|
|
|
|
if [ "${tty}" = "tty1" ]; then
|
|
|
|
if [ -e /bin/getty ]; then
|
|
|
|
GETTY_ARGS=""
|
|
|
|
else
|
|
|
|
GETTY_ARGS="--noclear"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
BAUD_RATE=38400
|
|
|
|
TERM_NAME=linux
|
|
|
|
|
|
|
|
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
|
2023-10-24 11:51:06 +01:00
|
|
|
|
|
|
|
exec ${GETTY} ${GETTY_ARGS} \
|
|
|
|
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"
|