diff options
Diffstat (limited to 'extra/sinit/files/sinit-launch-services.boot')
-rw-r--r-- | extra/sinit/files/sinit-launch-services.boot | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/sinit/files/sinit-launch-services.boot b/extra/sinit/files/sinit-launch-services.boot new file mode 100644 index 00000000..4d4fad6a --- /dev/null +++ b/extra/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 |