summary refs log tree commit diff
path: root/services/agetty-generic
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-04-02 13:01:43 +0200
committerJuan RP <xtraeme@gmail.com>2015-04-02 13:01:43 +0200
commitaeeb2b4b8459d853be85aa894c5be1aa140510ad (patch)
treee39718026a090ddb6907c3d4690344adc5c6a0cf /services/agetty-generic
parent5e16d475f1e52af951080b0cd1b8109239f4bee5 (diff)
downloadrunit-void-aeeb2b4b8459d853be85aa894c5be1aa140510ad.tar.gz
runit-void-aeeb2b4b8459d853be85aa894c5be1aa140510ad.tar.xz
runit-void-aeeb2b4b8459d853be85aa894c5be1aa140510ad.zip
agetty-tty1: unbreak and only apply --noclear on tty1. 20150402.1
Diffstat (limited to 'services/agetty-generic')
-rwxr-xr-xservices/agetty-generic/run3
1 files changed, 2 insertions, 1 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