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