17 lines
279 B
Bash
Executable file
17 lines
279 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
|
|
|
|
exec setsid ${GETTY} ${GETTY_ARGS} \
|
|
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"
|