diff options
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 0b84f72f..af93e42b 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -44,6 +44,10 @@ if [ -f /fsckoptions ]; then fsckoptions='' fi +if [ -f /forcefsck ]; then + fsckoptions='-f $fsckoptions' +fi + if [ ! -f /fastboot ]; then action -n "Checking root filesystem" fsck -T -a $fsckoptions / rc=$? @@ -119,6 +123,7 @@ fi # Set up kernel version-dependent symlinks. rm -f /lib/modules/preferred + if [ -n "$USEMODULES" ]; then ktag="`cat /proc/version`" mtag=`grep -l "$ktag" /lib/modules/*/.rhkmvtag` 2> /dev/null @@ -233,7 +238,7 @@ if [ -x /sbin/quotaon ]; then fi # Clean out /etc. -rm -f /etc/mtab~ /fastboot /fsckoptions +rm -f /etc/mtab~ /fastboot /fsckoptions /forcefsck >/var/run/utmp # Delete UUCP lock files. @@ -273,6 +278,7 @@ CLOCKDEF="" if [ -x /sbin/hwclock ]; then CLOCKFLAGS="--hctosys" CLOCK=/sbin/hwclock + $CLOCK --adjust else CLOCKFLAGS="-a" CLOCK=/sbin/clock |