22 lines
452 B
Bash
22 lines
452 B
Bash
#!/bin/sh
|
|
|
|
PATH=/bin:/usr/bin:/usr/sbin:/sbin
|
|
|
|
. /etc/runit/functions
|
|
|
|
msg "Welcome to Nulo!"
|
|
|
|
[ -r /etc/rc.conf ] && . /etc/rc.conf
|
|
|
|
# Start core services: one-time system tasks.
|
|
detect_virt
|
|
for f in /etc/runit/core-services/*.sh; do
|
|
[ -r $f ] && . $f
|
|
done
|
|
|
|
# create files for controlling runit
|
|
mkdir -p /run/runit
|
|
install -m000 /dev/null /run/runit/stopit
|
|
install -m000 /dev/null /run/runit/reboot
|
|
|
|
msg "Initialization complete, running stage 2..."
|