diff options
author | Juan RP <xtraeme@gmail.com> | 2015-04-02 12:31:31 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2015-04-02 12:31:31 +0200 |
commit | 5e16d475f1e52af951080b0cd1b8109239f4bee5 (patch) | |
tree | 3bc0f443173cdfdd434f8169cd69edfd2dd15b5e /services/agetty-generic/run | |
parent | 12c657aa09efeed53e54ecb8f3fbd40c46d32746 (diff) | |
parent | ef7ad969f23668ad6a5f45981a19362524f376b2 (diff) | |
download | runit-void-5e16d475f1e52af951080b0cd1b8109239f4bee5.tar.gz runit-void-5e16d475f1e52af951080b0cd1b8109239f4bee5.tar.xz runit-void-5e16d475f1e52af951080b0cd1b8109239f4bee5.zip |
Merge pull request #32 from nmeum/services 20150402
Refactor services/*
Diffstat (limited to 'services/agetty-generic/run')
-rwxr-xr-x | services/agetty-generic/run | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/services/agetty-generic/run b/services/agetty-generic/run index 9a34297..9f532b2 100755 --- a/services/agetty-generic/run +++ b/services/agetty-generic/run @@ -1,4 +1,7 @@ #!/bin/sh + +[ -r conf ] && . conf + tty=${PWD##*-} if [ -x /sbin/getty ]; then # busybox @@ -7,4 +10,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}" |