about summary refs log tree commit diff
path: root/foo/etc/sv/agetty-ttyS0
diff options
context:
space:
mode:
Diffstat (limited to 'foo/etc/sv/agetty-ttyS0')
l---------foo/etc/sv/agetty-ttyS0/finish1
-rwxr-xr-xfoo/etc/sv/agetty-ttyS0/run3
l---------foo/etc/sv/agetty-ttyS0/supervise1
3 files changed, 5 insertions, 0 deletions
diff --git a/foo/etc/sv/agetty-ttyS0/finish b/foo/etc/sv/agetty-ttyS0/finish
new file mode 120000
index 0000000..fa7eecd
--- /dev/null
+++ b/foo/etc/sv/agetty-ttyS0/finish
@@ -0,0 +1 @@
+/etc/sv/agetty-generic/finish
\ No newline at end of file
diff --git a/foo/etc/sv/agetty-ttyS0/run b/foo/etc/sv/agetty-ttyS0/run
new file mode 100755
index 0000000..0f60e37
--- /dev/null
+++ b/foo/etc/sv/agetty-ttyS0/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+tty=${PWD##*-}
+exec setsid /sbin/agetty -8 -s 9600 --noclear $tty linux
diff --git a/foo/etc/sv/agetty-ttyS0/supervise b/foo/etc/sv/agetty-ttyS0/supervise
new file mode 120000
index 0000000..cd9e77f
--- /dev/null
+++ b/foo/etc/sv/agetty-ttyS0/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.agetty-ttyS0
\ No newline at end of file