aboutsummaryrefslogtreecommitdiff
path: root/core/runit/files
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-02-13 11:34:51 +0300
committerCem Keylan <cem@ckyln.com>2020-02-13 11:34:51 +0300
commit14942f3c48055b4bd12d55b2e45162d806a97ee2 (patch)
tree3c7b79e377aa8ae42cd628f337aca9c094869525 /core/runit/files
parentdb137df80bb89928ec08bf696fe1a122377105a6 (diff)
downloadrepository-14942f3c48055b4bd12d55b2e45162d806a97ee2.tar.gz
runit: make it usable
Diffstat (limited to 'core/runit/files')
-rwxr-xr-xcore/runit/files/210
-rw-r--r--core/runit/files/poweroff2
-rw-r--r--core/runit/files/reboot2
3 files changed, 14 insertions, 0 deletions
diff --git a/core/runit/files/2 b/core/runit/files/2
new file mode 100755
index 00000000..cae35839
--- /dev/null
+++ b/core/runit/files/2
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+PATH=/usr/bin:
+
+for getty in 1 2 3 4 5 6 ; do
+ while :; do /sbin/getty 38400 tty${getty} 2>&1 ; done & # for busybox
+ # while :; do /sbin/getty /dev/tty${getty} linux 2>&1 ; done & # for ubase
+done
+
+exec /usr/bin/runsvdir -P /var/service
diff --git a/core/runit/files/poweroff b/core/runit/files/poweroff
new file mode 100644
index 00000000..7c07b053
--- /dev/null
+++ b/core/runit/files/poweroff
@@ -0,0 +1,2 @@
+#!/bin/sh
+runit-init 0
diff --git a/core/runit/files/reboot b/core/runit/files/reboot
new file mode 100644
index 00000000..be831eca
--- /dev/null
+++ b/core/runit/files/reboot
@@ -0,0 +1,2 @@
+#!/bin/sh
+runit-init 6