diff options
-rwxr-xr-x | services/agetty-generic/run | 3 | ||||
-rw-r--r-- | services/agetty-tty1/conf | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/services/agetty-generic/run b/services/agetty-generic/run index 9f532b2..b47475a 100755 --- a/services/agetty-generic/run +++ b/services/agetty-generic/run @@ -1,8 +1,9 @@ #!/bin/sh +tty=${PWD##*-} + [ -r conf ] && . conf -tty=${PWD##*-} if [ -x /sbin/getty ]; then # busybox GETTY=getty diff --git a/services/agetty-tty1/conf b/services/agetty-tty1/conf index 19cbabb..7c684e9 100644 --- a/services/agetty-tty1/conf +++ b/services/agetty-tty1/conf @@ -1,6 +1,8 @@ if [ -x /sbin/agetty ]; then # util-linux specific settings - GETTY_ARGS="--no-clear" + if [ "${tty}" = "tty1" ]; then + GETTY_ARGS="--noclear" + fi fi BAUD_RATE=38400 |