Add rc-service and update all softlevel refs to runlevel.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user