aboutsummaryrefslogtreecommitdiffstats
path: root/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash
diff options
context:
space:
mode:
Diffstat (limited to 'layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash')
-rwxr-xr-xlayout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash7
1 files changed, 7 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash
new file mode 100755
index 0000000..adc08db
--- /dev/null
+++ b/layout/rootfs/etc/s6-linux-init/run-image/service/.s6-svscan/crash
@@ -0,0 +1,7 @@
+#!/command/execlineb -P
+
+redirfd -r 0 /dev/console
+redirfd -w 1 /dev/console
+fdmove -c 2 1
+foreground { s6-echo -- "s6-svscan crashed. Dropping to an interactive shell." }
+/bin/sh -i