summaryrefslogtreecommitdiff
path: root/init.d/checkfs
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/checkfs')
-rwxr-xr-xinit.d/checkfs14
1 files changed, 8 insertions, 6 deletions
diff --git a/init.d/checkfs b/init.d/checkfs
index 49af243..5e34e51 100755
--- a/init.d/checkfs
+++ b/init.d/checkfs
@@ -5,13 +5,15 @@
description="Check filesystems according to /etc/fstab for errors and \
optionally repair them."
-depend() {
+depend()
+{
need checkroot
after modules
keywords notimeout
}
-do_checkfs() {
+do_checkfs()
+{
local retval=0 mode="-p" opts= parts=
ebegin "Checking all filesystems"
@@ -56,16 +58,16 @@ do_checkfs() {
return ${retval}
}
-start() {
+start()
+{
do_checkfs
}
-stop() {
+stop()
+{
# fsck on shutdown if we need to
if yesno "${fsck_shutdown:-${FSCK_SHUTDOWN}}"; then
do_checkfs
fi
return 0
}
-
-# vim: set ts=4 :