aboutsummaryrefslogtreecommitdiff
path: root/extra/sinit/files
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sinit/files')
-rw-r--r--extra/sinit/files/config.h3
-rw-r--r--extra/sinit/files/poweroff3
-rw-r--r--extra/sinit/files/reboot2
-rw-r--r--extra/sinit/files/sinit-launch-services.boot14
-rw-r--r--extra/sinit/files/sinit.post.shutdown16
-rw-r--r--extra/sinit/files/sinit.pre.shutdown10
6 files changed, 0 insertions, 48 deletions
diff --git a/extra/sinit/files/config.h b/extra/sinit/files/config.h
deleted file mode 100644
index dca21e3f..00000000
--- a/extra/sinit/files/config.h
+++ /dev/null
@@ -1,3 +0,0 @@
-static char *const rcinitcmd[] = { "/usr/lib/init/rc.boot", NULL };
-static char *const rcrebootcmd[] = { "/usr/lib/init/rc.shutdown", "reboot", NULL };
-static char *const rcpoweroffcmd[] = { "/usr/lib/init/rc.shutdown", "poweroff", NULL };
diff --git a/extra/sinit/files/poweroff b/extra/sinit/files/poweroff
deleted file mode 100644
index 69e8f9a4..00000000
--- a/extra/sinit/files/poweroff
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-/bin/kill -s USR1 1
diff --git a/extra/sinit/files/reboot b/extra/sinit/files/reboot
deleted file mode 100644
index 266afb92..00000000
--- a/extra/sinit/files/reboot
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-/bin/kill -s INT 1
diff --git a/extra/sinit/files/sinit-launch-services.boot b/extra/sinit/files/sinit-launch-services.boot
deleted file mode 100644
index 4d4fad6a..00000000
--- a/extra/sinit/files/sinit-launch-services.boot
+++ /dev/null
@@ -1,14 +0,0 @@
-# we are going to start runit and getty here
-
-sinit_run_getty() {
- for getty in 1 2 3 4 5 6; do
- ubase-box respawn /sbin/getty 38400 tty${getty} 2>&1 &
- done
-}
-
-sinit_runit() {
- ubase-box respawn /usr/bin/runsvdir -P /var/service &
-}
-
-[ "$SINIT_ENABLE_GETTY" = 1 ] && sinit_run_getty
-[ "$SINIT_ENABLE_RUNIT" = 1 ] && sinit_runit
diff --git a/extra/sinit/files/sinit.post.shutdown b/extra/sinit/files/sinit.post.shutdown
deleted file mode 100644
index 16deba74..00000000
--- a/extra/sinit/files/sinit.post.shutdown
+++ /dev/null
@@ -1,16 +0,0 @@
-# vim:filetype=sh
-
-# We handle the shutdown from here
-
-if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then
- case "$1" in
- reboot)
- out "Requesting system reboot..."
- /usr/bin/ubase-box halt -r
- ;;
- poweroff)
- out "Requesting system poweroff..."
- /usr/bin/ubase-box halt -p
- ;;
- esac
-fi
diff --git a/extra/sinit/files/sinit.pre.shutdown b/extra/sinit/files/sinit.pre.shutdown
deleted file mode 100644
index af0d6f4f..00000000
--- a/extra/sinit/files/sinit.pre.shutdown
+++ /dev/null
@@ -1,10 +0,0 @@
-if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then
- case "$1" in
- reboot|poweroff)
- ;;
- *)
- echo "Invalid action '$1' for rc.shutdown" 1>&2
- exit 1
- ;;
- esac
-fi