vp-build/templates/OpenRC/files/shutdown.in
Juan RP 2ed7b24d16 OpenRC: fix the shutdown service sed subst.
--HG--
extra : convert_revision : ef6ac14924ae1597e581e816a4315b5bc66b4bef
2009-05-03 00:30:21 +02:00

19 lines
237 B
Plaintext

#!@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
}