aboutsummaryrefslogtreecommitdiff
path: root/core/minit/files
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-02-07 17:21:02 +0300
committerCem Keylan <cem@ckyln.com>2020-02-07 17:21:02 +0300
commitc416432b8cc934b768a19242b976c159f07a22a5 (patch)
tree0fb5415f896ea29506150dce09dad3bc68235d97 /core/minit/files
parenta61736ef89865187acf62c349c387cc9d1354af7 (diff)
downloadrepository-c416432b8cc934b768a19242b976c159f07a22a5.tar.gz
minit: add new package at 0.1.0 to core
Diffstat (limited to 'core/minit/files')
-rw-r--r--core/minit/files/launch-services.boot10
-rw-r--r--core/minit/files/minit.post.shutdown1
-rw-r--r--core/minit/files/poweroff2
-rw-r--r--core/minit/files/reboot2
4 files changed, 15 insertions, 0 deletions
diff --git a/core/minit/files/launch-services.boot b/core/minit/files/launch-services.boot
new file mode 100644
index 00000000..6ba14057
--- /dev/null
+++ b/core/minit/files/launch-services.boot
@@ -0,0 +1,10 @@
+# We are going to start runit and getty here
+
+# Uncomment to enable gettys
+# for getty in 1 2 3 4 5 6 ; do
+# while :; do /sbin/getty tty${getty} 0 linux ; done & # busybox getty
+# # while :; do /sbin/getty tty${getty} linux ; done & # ubase getty
+# done
+
+# Uncomment enable runit services
+# while :; do /usr/bin/runsvdir -P /var/service ; done &
diff --git a/core/minit/files/minit.post.shutdown b/core/minit/files/minit.post.shutdown
new file mode 100644
index 00000000..747db7f1
--- /dev/null
+++ b/core/minit/files/minit.post.shutdown
@@ -0,0 +1 @@
+case "$1" in poweroff) /bin/kill -s USR2 1 ;; reboot) /bin/kill -s QUIT 1 ;; esac
diff --git a/core/minit/files/poweroff b/core/minit/files/poweroff
new file mode 100644
index 00000000..69d8731e
--- /dev/null
+++ b/core/minit/files/poweroff
@@ -0,0 +1,2 @@
+#!/bin/sh
+/bin/kill -s USR1 1
diff --git a/core/minit/files/reboot b/core/minit/files/reboot
new file mode 100644
index 00000000..266afb92
--- /dev/null
+++ b/core/minit/files/reboot
@@ -0,0 +1,2 @@
+#!/bin/sh
+/bin/kill -s INT 1