about summary refs log tree commit diff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-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