diff options
Diffstat (limited to 'layout/rootfs/etc/s6-linux-init/init')
-rwxr-xr-x | layout/rootfs/etc/s6-linux-init/init | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-linux-init/init b/layout/rootfs/etc/s6-linux-init/init new file mode 100755 index 0000000..358c2f5 --- /dev/null +++ b/layout/rootfs/etc/s6-linux-init/init @@ -0,0 +1,24 @@ +#!/command/execlineb -P + +/command/export PATH /command:/bin +/command/cd / +s6-setsid -qb -- +umask 022 +if { s6-echo -- "\n init created by s6-linux-init-maker\n see http://skarnet.org/software/s6-linux-init/\n\n" } +if { s6-mount -nwt tmpfs -o mode=0755 tmpfs /run } +if { s6-hiercopy /etc/s6-linux-init/run-image /run } + +s6-envdir -I -- /etc/s6-linux-init/env +redirfd -r 0 /dev/null +redirfd -wnb 1 /run/service/s6-svscan-log/fifo +background +{ + s6-setsid -- + redirfd -w 1 /run/service/s6-svscan-log/fifo + fdmove -c 2 1 + /etc/rc.init +} +unexport ! +cd /run/service +fdmove -c 2 1 +s6-svscan -st0 |