aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-02-03 17:38:16 +0000
committerBill Nottingham <notting@redhat.com>1999-02-03 17:38:16 +0000
commitd503a6fe70268f6b451a80b3fc89641f33491e9e (patch)
tree42f87effe476bfa33afb1de931c23434d2bef246 /rc.d/rc.sysinit
parentc3695a8497dcbc4f5dc3348f9dd0f4ffb01badee (diff)
downloadinitscripts-d503a6fe70268f6b451a80b3fc89641f33491e9e.tar
initscripts-d503a6fe70268f6b451a80b3fc89641f33491e9e.tar.gz
initscripts-d503a6fe70268f6b451a80b3fc89641f33491e9e.tar.bz2
initscripts-d503a6fe70268f6b451a80b3fc89641f33491e9e.tar.xz
initscripts-d503a6fe70268f6b451a80b3fc89641f33491e9e.zip
random fixes from bugzilla: setsysfont only if font defined; do hwclock
--adjust; fix /forcefsck
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit8
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