vp-build/templates/OpenRC/files/shutdown.in

19 lines
237 B
Plaintext
Raw Normal View History

#!@PREFIX@/sbin/runscript
description="Shutdown or reboot the system"
depend()
{
keyword noprefix
after *
}
start()
{
if [ "${RC_RUNLEVEL}" = "shutdown" ]; then
yesno "$RC_REBOOT" && reboot -d -f -i
poweroff -d -f -h -i
fi
}