about summary refs log tree commit diff
path: root/foo/etc/sv/agetty-tty1/run
diff options
context:
space:
mode:
Diffstat (limited to 'foo/etc/sv/agetty-tty1/run')
-rwxr-xr-xfoo/etc/sv/agetty-tty1/run3
1 files changed, 3 insertions, 0 deletions
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