aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-12-28 14:49:07 +0000
committerRoy Marples <roy@marples.name>2008-12-28 14:49:07 +0000
commit1c5ec9d16147c43c48f1d5b07fc58a07e5be1739 (patch)
tree27532579eb55c48c5be819bd318d5c48bc512190
parentf4b836694227824754f8e556680b49bfd70c49d9 (diff)
Fake get_bootparam function so that we don't check for kernel options forcefsck when doing an fsck on shutdown.
-rw-r--r--init.d/fsck.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.d/fsck.in b/init.d/fsck.in
index f2aa62aa..f3c95188 100644
--- a/init.d/fsck.in
+++ b/init.d/fsck.in
@@ -93,6 +93,9 @@ stop()
_abort() { return 0; }
_reboot() { return 0; }
+ # Don't check kernel params on stop.
+ get_bootparam() { return 1; }
+
yesno "${fsck_shutdown}" && start
return 0
}