summaryrefslogtreecommitdiff
path: root/init-s6-base.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-s6-base.sh')
-rwxr-xr-xinit-s6-base.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/init-s6-base.sh b/init-s6-base.sh
new file mode 100755
index 0000000..080045c
--- /dev/null
+++ b/init-s6-base.sh
@@ -0,0 +1,9 @@
+#! /bin/bash
+
+echo "Re-initializing init base..."
+rm -rf /etc/s6/base &&
+s6-linux-init-maker -1 -f /etc/s6/skel -p "/bin:/sbin:/usr/bin" \
+ -D default -G "/sbin/agetty -L -8 tty1 115200" \
+ -c /etc/s6/base -t 2 -L -u root -U utmp /etc/s6/base
+rm -rf /etc/s6/base/scripts
+cp -r /etc/s6/scripts /etc/s6/base/scripts