summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-19 17:11:50 +0000
committerRoy Marples <roy@marples.name>2008-03-19 17:11:50 +0000
commitd9ec62b22a8ccfebda4af34d8319b33a8a5e3bbb (patch)
tree1ee06a122011bd5347ed1dac292e1408178cceb0 /init.d
parent089caec283e1e1b39767abf9cb355f47ee6daca6 (diff)
downloadopenrc-d9ec62b22a8ccfebda4af34d8319b33a8a5e3bbb.tar.gz
openrc-d9ec62b22a8ccfebda4af34d8319b33a8a5e3bbb.tar.bz2
openrc-d9ec62b22a8ccfebda4af34d8319b33a8a5e3bbb.tar.xz
Add rc-service and update all softlevel refs to runlevel.
Diffstat (limited to 'init.d')
-rw-r--r--init.d/bootmisc.in2
-rw-r--r--init.d/fsck.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
index a19a10b..c6894e4 100644
--- a/init.d/bootmisc.in
+++ b/init.d/bootmisc.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
diff --git a/init.d/fsck.in b/init.d/fsck.in
index d03e141..5bf9ba8 100644
--- a/init.d/fsck.in
+++ b/init.d/fsck.in
@@ -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