summaryrefslogtreecommitdiff
path: root/system/s6-linux-init/rc.init
diff options
context:
space:
mode:
Diffstat (limited to 'system/s6-linux-init/rc.init')
-rw-r--r--system/s6-linux-init/rc.init9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/s6-linux-init/rc.init b/system/s6-linux-init/rc.init
new file mode 100644
index 000000000..f96ed4d5e
--- /dev/null
+++ b/system/s6-linux-init/rc.init
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+rl="$1"
+shift
+
+/sbin/openrc sysinit
+/sbin/openrc boot
+
+exec /etc/s6-linux-init/current/scripts/runlevel "$rl"