|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T e
Length: 733 (0x2dd) Types: TextFile Names: »etc/fsanck «
└─⟦ff5a9a1ac⟧ Bits:30004042/core3.imd SW95705I 386/ix Multi-user Release 1.2 └─⟦this⟧ »etc/fsanck «
# @(#) 1.1 # Script to check root filesystem, periodically, at shutdown # to catch any possible filesystem corruption early and correct. # PATH=/bin:/usr/bin:/etc # make absolutely sure of PATH LAST=/etc/.lastfsck # see how long its been since the last fsck at shutdown. if [ ! -f $LAST ] ; then touch 0101000071 $LAST fi its_time=`find $LAST -mtime +0 -print` if [ -z "$its_time" ] ; then exit 0; fi # get name of root filesystem rfs=`/etc/devnm / | tr -s "\040\011" "\011*" | cut -f1 | \ sed -e "/swap/d" -e "s!^!/dev/!"` # call fsck and update .lastfsck # echo "Checking root filesystem ($rfs)." touch $LAST; sync; sleep 7 /etc/fsck -y -s -b $rfs > /dev/null 2>&1 # Using the -b option will force user to reboot.