summary refs log tree commit diff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rwxr-xr-xservices/agetty-generic/finish3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/agetty-generic/finish b/services/agetty-generic/finish
index dba0186..f23bb9d 100755
--- a/services/agetty-generic/finish
+++ b/services/agetty-generic/finish
@@ -1,4 +1,3 @@
 #!/bin/sh
-service=$(basename $(pwd))
-tty=${service/*-}
+tty=${PWD##*-}
 exec utmpset -w $tty