aboutsummaryrefslogtreecommitdiff
path: root/core/runit/files
diff options
context:
space:
mode:
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