aboutsummaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/rc.tini
diff options
context:
space:
mode:
Diffstat (limited to 'layout/rootfs/etc/rc.tini')
-rwxr-xr-xlayout/rootfs/etc/rc.tini15
1 files changed, 15 insertions, 0 deletions
diff --git a/layout/rootfs/etc/rc.tini b/layout/rootfs/etc/rc.tini
new file mode 100755
index 0000000..67a79b3
--- /dev/null
+++ b/layout/rootfs/etc/rc.tini
@@ -0,0 +1,15 @@
+#!/command/execlineb -P
+
+# Write a message to /var/log/syslogd
+
+foreground
+{
+ s6-ipcclient -l0 /dev/log
+ fdmove 1 7
+ s6-echo "/etc/rc.tini: shutdown requested"
+}
+
+
+# Shut down all services
+
+s6-rc -da change