about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2015-04-29 15:52:38 +0200
committerJuan RP <xtraeme@voidlinux.eu>2015-04-29 15:52:38 +0200
commita3d5546c0bb875500f72ce7f466567489adb4968 (patch)
treeb686dd844957bcb2aa784e5fa37d2be93eea8e36
parent1079b1fae22da331c18a65fbef8a59552d72770f (diff)
downloadrunit-void-a3d5546c0bb875500f72ce7f466567489adb4968.tar.gz
runit-void-a3d5546c0bb875500f72ce7f466567489adb4968.tar.xz
runit-void-a3d5546c0bb875500f72ce7f466567489adb4968.zip
services/sulogin: drop bashism.
-rwxr-xr-xservices/sulogin/run2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/sulogin/run b/services/sulogin/run
index 1c35123..b83dda2 100755
--- a/services/sulogin/run
+++ b/services/sulogin/run
@@ -1,4 +1,4 @@
 #!/bin/sh
-tty=$(</sys/class/tty/console/active)
+read -r tty < /sys/class/tty/console/active
 tty=/dev/${tty##* }
 exec setsid sulogin -p < $tty >$tty 2>&1