/[baselayout]/trunk/init.d/checkfs
Gentoo

Contents of /trunk/init.d/checkfs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 93 - (show annotations) (download)
Fri Dec 28 23:49:22 2001 UTC (17 years, 4 months ago) by azarah
File size: 456 byte(s)
add help, etc

1 #!/sbin/runscript
2 # Copyright 1999-2002 Gentoo Technologies, Inc.
3 # Distributed under the terms of the GNU General Public License, v2 or later
4 # $Header$
5
6
7 depend() {
8 need checkroot
9 }
10
11 start() {
12 ebegin "Checking all filesystems"
13 fsck -R -A -a
14 if [ $? -eq 0 ]
15 then
16 eend 0
17 elif [ $? -eq 1 ]
18 then
19 ewend 1 "Filesystem errors corrected."
20 else
21 eend 2 "Fsck could not correct all errors, manual repair needed"
22 /sbin/sulogin $CONSOLE
23 fi
24 return
25 }

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20