From 3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 11 Jan 2008 12:13:46 +0000 Subject: Adopt a more C style for scripts and remove vim settings. --- init.d/checkfs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'init.d/checkfs') diff --git a/init.d/checkfs b/init.d/checkfs index 49af243c..5e34e518 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 : -- cgit v1.2.3