#!/usr/sbin/openrc-run

description="Execute the reboot command"

depend()
{
	# Called manually from /etc/init.d/rc after openrc finishes.
	# No ordering edges: "after umountroot" inverts stop deps in deptree.
	:
}

[ -f /etc/default/halt ] && . /etc/default/halt

stop()
{
	einfo "Will now restart"
	local netdown="-i"
	if [ "${NETDOWN}" = no ] ; then
		netdown=""
	fi
	reboot -d -f ${netdown}
}

start()
{
	:
}
