summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-31 17:12:54 +0000
committerRoy Marples <roy@marples.name>2008-01-31 17:12:54 +0000
commit492a8f87cfa405e9c880b3539e44f24204ffd7fb (patch)
tree3605849fb427dabffad85b5f1dca42507867ba8b
parente687cc1e79f95c3fb69ed895e5666e434c1a3519 (diff)
downloadopenrc-492a8f87cfa405e9c880b3539e44f24204ffd7fb.tar.gz
openrc-492a8f87cfa405e9c880b3539e44f24204ffd7fb.tar.bz2
openrc-492a8f87cfa405e9c880b3539e44f24204ffd7fb.tar.xz
Enable fsck_shutdown again.
-rw-r--r--conf.d/fsck (renamed from conf.d/checkfs)2
-rw-r--r--init.d/fsck6
2 files changed, 7 insertions, 1 deletions
diff --git a/conf.d/checkfs b/conf.d/fsck
index 351c747..6f03945 100644
--- a/conf.d/checkfs
+++ b/conf.d/fsck
@@ -1,4 +1,4 @@
-# fsck_shutdown causes checkfs to trigger during shutdown as well as startup.
+# fsck_shutdown causes fsck to trigger during shutdown as well as startup.
# The end result of this is that if any periodic non-root filesystem checks are
# scheduled, under normal circumstances the actual check will happen during
# shutdown rather than at next boot.
diff --git a/init.d/fsck b/init.d/fsck
index 01c92a6..34dd14c 100644
--- a/init.d/fsck
+++ b/init.d/fsck
@@ -35,3 +35,9 @@ start()
exec rc-abort; return 1;;
esac
}
+
+stop()
+{
+ yesno "${fsck_shutdown}" && start
+ return 0
+}