Files
Arquivotheca.Solaris-2.5/cmd/initpkg/init.d/MOUNTFSYS
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

25 lines
534 B
Plaintext
Executable File

#ident "@(#)MOUNTFSYS 1.10 94/01/19 SMI" /* SVr4.0 1.1.4.1 */
# Mount file systems
cd /
/sbin/mountall -l
# make sure /usr subtree is present by testing for /usr/sbin
if [ ! -d /usr/sbin ]
then
echo "/usr sub-tree is not present - changing to single user mode"
/etc/init S
fi
# The following counts the number of filesystems with quotas enabled
NQUOTA=`cut -f 4 /etc/mnttab | egrep -c "^quota|,quota"`
if [ $NQUOTA -gt 0 ]
then
echo "Checking UFS quotas: \c"
/usr/sbin/quotacheck -a -p
echo "done."
/usr/sbin/quotaon -a
fi