summary refs log tree commit diff
path: root/services/sulogin/run
blob: b83dda2a7e0f834d60392ee2f6e6ad86c4cbb3fa (plain) (blame)
1
2
3
4
#!/bin/sh
read -r tty < /sys/class/tty/console/active
tty=/dev/${tty##* }
exec setsid sulogin -p < $tty >$tty 2>&1