diff options
| author | Roy Marples <roy@marples.name> | 2008-01-11 12:13:46 +0000 | 
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-01-11 12:13:46 +0000 | 
| commit | 3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 (patch) | |
| tree | 8b4d6121f0d4b921566eeec2844c9bf76131de78 /init.d/checkfs | |
| parent | 1f4422c72f968405a0b8bf56d4f9c3b619b1b80d (diff) | |
| download | openrc-3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287.tar.xz | |
Adopt a more C style for scripts and remove vim settings.
Diffstat (limited to 'init.d/checkfs')
| -rwxr-xr-x | init.d/checkfs | 14 | 
1 files changed, 8 insertions, 6 deletions
| 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 : | 
