From d111a61fbd67ccf1b29f0707526025440fbf51be Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 11 May 2015 07:49:27 +0200 Subject: services/agetty-generic/finish: drop bashism (close #37). --- services/agetty-generic/finish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'services') 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 -- cgit 1.4.1