about summary refs log tree commit diff
path: root/foo/etc/sv/agetty-tty1
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-04-25 23:20:32 +0200
committerJuan RP <xtraeme@gmail.com>2014-04-25 23:20:32 +0200
commitb2fec086b9f498102537e0ff936138b2960e4082 (patch)
tree13dd068d53033bf799a502fff1acbf46dfe0743c /foo/etc/sv/agetty-tty1
downloadrunit-void-b2fec086b9f498102537e0ff936138b2960e4082.tar.gz
runit-void-b2fec086b9f498102537e0ff936138b2960e4082.tar.xz
runit-void-b2fec086b9f498102537e0ff936138b2960e4082.zip
Initial import of runit init scripts based on ignite.
I did not use ignite because it needs bash, and I don't really want it.
Diffstat (limited to 'foo/etc/sv/agetty-tty1')
l---------foo/etc/sv/agetty-tty1/finish1
-rwxr-xr-xfoo/etc/sv/agetty-tty1/run3
l---------foo/etc/sv/agetty-tty1/supervise1
3 files changed, 5 insertions, 0 deletions
diff --git a/foo/etc/sv/agetty-tty1/finish b/foo/etc/sv/agetty-tty1/finish
new file mode 120000
index 0000000..fa7eecd
--- /dev/null
+++ b/foo/etc/sv/agetty-tty1/finish
@@ -0,0 +1 @@
+/etc/sv/agetty-generic/finish
\ No newline at end of file
diff --git a/foo/etc/sv/agetty-tty1/run b/foo/etc/sv/agetty-tty1/run
new file mode 100755
index 0000000..dfca715
--- /dev/null
+++ b/foo/etc/sv/agetty-tty1/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+tty=${PWD##*-}
+exec setsid /sbin/agetty -8 -s 38400 $([ $tty = tty1 ] && echo --noclear) $tty linux
diff --git a/foo/etc/sv/agetty-tty1/supervise b/foo/etc/sv/agetty-tty1/supervise
new file mode 120000
index 0000000..a23f48f
--- /dev/null
+++ b/foo/etc/sv/agetty-tty1/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.agetty-tty1
\ No newline at end of file