Add rc-service and update all softlevel refs to runlevel.

This commit is contained in:
Roy Marples
2008-03-19 17:11:50 +00:00
parent 089caec283
commit d9ec62b22a
14 changed files with 96 additions and 28 deletions

View File

@@ -126,7 +126,7 @@ start()
stop()
{
# Write a halt record if we're shutting down
case "${RC_SOFTLEVEL}" in
case "${RC_RUNLEVEL}" in
reboot|shutdown) [ "${RC_UNAME}" = "Linux" ] && halt -w;;
esac

View File

@@ -19,7 +19,7 @@ _abort() {
# We should only reboot when first booting
_reboot() {
if [ "${RC_SOFTLEVEL}" = "${RC_BOOTLEVEL}" ]; then
if [ "${RC_RUNLEVEL}" = "${RC_BOOTLEVEL}" ]; then
reboot "$@"
_abort || return 1
fi