about summary refs log tree commit diff
diff options
context:
space:
mode:
-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