diff options
author | Toyam Cox <aviator45003@gmail.com> | 2016-06-17 13:05:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-17 13:05:05 -0400 |
commit | 39a1b2a539a402713cb5551b4abf830f0757ecd2 (patch) | |
tree | 0613c8005730987ced66f2a8863232de9b8c39c6 | |
parent | f38648a7ed5b6a5244d2c7e9d002ce7802060474 (diff) | |
parent | cd72b526fdf0cea3ff69630f4dcb4fd8e22fdf40 (diff) | |
download | runit-void-39a1b2a539a402713cb5551b4abf830f0757ecd2.tar.gz runit-void-39a1b2a539a402713cb5551b4abf830f0757ecd2.tar.xz runit-void-39a1b2a539a402713cb5551b4abf830f0757ecd2.zip |
Merge pull request #52 from zqqw/sulogin_opts
sulogin OPTS
-rwxr-xr-x | services/sulogin/run | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/sulogin/run b/services/sulogin/run index b83dda2..eee14c7 100755 --- a/services/sulogin/run +++ b/services/sulogin/run @@ -1,4 +1,5 @@ #!/bin/sh +[ -r conf ] && . ./conf read -r tty < /sys/class/tty/console/active tty=/dev/${tty##* } -exec setsid sulogin -p < $tty >$tty 2>&1 +exec setsid sulogin ${OPTS:=-p} < $tty >$tty 2>&1 |