aboutsummaryrefslogtreecommitdiff
path: root/extra/sinit/post-install
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-13 20:48:33 +0300
committerCem Keylan <cem@ckyln.com>2020-01-13 20:48:33 +0300
commit11b53c25d767fa16671bc0b42158e61c7a2de19f (patch)
tree7761a24b5e1c345eccaa5efb515b592dd564a42c /extra/sinit/post-install
parent86ba980c93f32253648f56560246e51df507a817 (diff)
downloadrepository-11b53c25d767fa16671bc0b42158e61c7a2de19f.tar.gz
sinit: add to extra at 1.1
Diffstat (limited to 'extra/sinit/post-install')
-rwxr-xr-xextra/sinit/post-install16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/sinit/post-install b/extra/sinit/post-install
new file mode 100755
index 00000000..f9c906f2
--- /dev/null
+++ b/extra/sinit/post-install
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+grep -q SINIT_ /etc/init/rc.conf || cat <<EOF >> /etc/init/rc.conf
+
+# Uncomment these to run the scripts for sinit
+# SINIT_SHUTDOWN_HOOKS=1
+# SINIT_ENABLE_GETTY=1
+# SINIT_ENABLE_RUNIT=1
+EOF
+
+cat <<EOF
+
+Important: If you want to sinit to boot, edit your
+/etc/init/rc.conf to enable SINIT variables."
+
+EOF