From 3e90bcf9811dd3dc5d397fbfe18d0ed84a4fac65 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 13 Jan 2020 23:13:19 +0300 Subject: repository: move ubase and sinit to core --- core/sinit/files/sinit-launch-services.boot | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 core/sinit/files/sinit-launch-services.boot (limited to 'core/sinit/files/sinit-launch-services.boot') diff --git a/core/sinit/files/sinit-launch-services.boot b/core/sinit/files/sinit-launch-services.boot new file mode 100644 index 00000000..4d4fad6a --- /dev/null +++ b/core/sinit/files/sinit-launch-services.boot @@ -0,0 +1,14 @@ +# 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 -- cgit v1.2.3