aboutsummaryrefslogtreecommitdiff
path: root/init.d/checkfs
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-23 12:04:11 +0000
committerRoy Marples <roy@marples.name>2007-11-23 12:04:11 +0000
commitd81def80b00a3dbcb4f8980f4503c4d659b48a2a (patch)
tree64a5df4281620cacbc1f03838d42e88167886fc9 /init.d/checkfs
parentf077f179edaeb746b267421baa29ec751c38b713 (diff)
Move /etc/conf.d/rc to /etc/rc.conf.
Lowercase all configurable variables, non configurations remain uppercase. Replace rc_env_bool with rc_yesno. Split localmount info procfs (Linux) and dumpon, savecore (BSD)
Diffstat (limited to 'init.d/checkfs')
-rwxr-xr-xinit.d/checkfs6
1 files changed, 4 insertions, 2 deletions
diff --git a/init.d/checkfs b/init.d/checkfs
index c7cbc9c7..c5b8728c 100755
--- a/init.d/checkfs
+++ b/init.d/checkfs
@@ -63,7 +63,7 @@ do_checkfs() {
ewend 1 "Operational error, continuing"
retval=0
else
- if [ "${RC_FORCE_AUTO}" = "yes" ] ; then
+ if yesno ${rc_force_auto:-${RC_FORCE_AUTO}}; then
eend 2 "Fsck could not correct all errors, rerunning"
fsck ${opts} -y ${parts}
retval=$?
@@ -87,7 +87,9 @@ start() {
stop() {
# fsck on shutdown if we need to
- [ "${FSCK_SHUTDOWN}" = "yes" -a ! -f /forcefsck ] && do_checkfs
+ if yesno "${fsck_shutdown:-${FSCK_SHUTDOWN}}"; then
+ [ ! -f /forcefsck ] && do_checkfs
+ fi
return 0
}