diff options
author | Juan RP <xtraeme@voidlinux.eu> | 2015-04-29 15:52:38 +0200 |
---|---|---|
committer | Juan RP <xtraeme@voidlinux.eu> | 2015-04-29 15:52:38 +0200 |
commit | a3d5546c0bb875500f72ce7f466567489adb4968 (patch) | |
tree | b686dd844957bcb2aa784e5fa37d2be93eea8e36 | |
parent | 1079b1fae22da331c18a65fbef8a59552d72770f (diff) | |
download | runit-void-a3d5546c0bb875500f72ce7f466567489adb4968.tar.gz runit-void-a3d5546c0bb875500f72ce7f466567489adb4968.tar.xz runit-void-a3d5546c0bb875500f72ce7f466567489adb4968.zip |
services/sulogin: drop bashism.
-rwxr-xr-x | services/sulogin/run | 2 |
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 |