#!/sbin/openrc-run
# vim:set filetype=sh:
# shellcheck shell=sh

description="Tiny Cloud Bootstrap - main phase"

depend() {
	need net
	[ -f /etc/tiny-cloud.conf ] && . /etc/tiny-cloud.conf
	: "${TINY_CLOUD_SSH_SERVICE=sshd}"
	[ -z "$TINY_CLOUD_SSH_SERVICE" ] || before "$TINY_CLOUD_SSH_SERVICE"
}

start() {
	ebegin "Tiny Cloud - main phase"
	tiny-cloud main
	eend $?
}
