about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2015-05-11 07:49:27 +0200
committerJuan RP <xtraeme@voidlinux.eu>2015-05-11 07:49:27 +0200
commitd111a61fbd67ccf1b29f0707526025440fbf51be (patch)
tree378f22776c9a7321f943def3a5c2388e42ce865c
parenta3d5546c0bb875500f72ce7f466567489adb4968 (diff)
downloadrunit-void-d111a61fbd67ccf1b29f0707526025440fbf51be.tar.gz
runit-void-d111a61fbd67ccf1b29f0707526025440fbf51be.tar.xz
runit-void-d111a61fbd67ccf1b29f0707526025440fbf51be.zip
services/agetty-generic/finish: drop bashism (close #37). 20150511
-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