diff options
Diffstat (limited to 'services/agetty-generic/run')
-rwxr-xr-x | services/agetty-generic/run | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/services/agetty-generic/run b/services/agetty-generic/run index 9a34297..1e6c2bd 100755 --- a/services/agetty-generic/run +++ b/services/agetty-generic/run @@ -1,5 +1,9 @@ #!/bin/sh + tty=${PWD##*-} + +[ -r conf ] && . ./conf + if [ -x /sbin/getty ]; then # busybox GETTY=getty @@ -7,4 +11,6 @@ elif [ -x /sbin/agetty ]; then # util-linux GETTY=agetty fi -exec setsid $GETTY $tty 38400 linux + +exec setsid ${GETTY}${GETTY_ARGS:+ $GETTY_ARGS} \ + "${tty}" "${BAUD_RATE}" "${TERM_NAME}" |