#!/sbin/sh
# @(#) $Revision: 78.2 $    
#
# NOTE:    This script is not configurable!  Any changes made to this
#          scipt will be overwritten when you upgrade to the next
#          release of HP-UX.
#
# WARNING: Changing this script in any way may lead to a system that
#          is unbootable.  Do not modify this script.


#
# Check the root file system.
#

if [ -x /sbin/is_local_root ] && /sbin/is_local_root ; then
    #
    # Check the root file system.
    #
    if [ -c /dev/rroot ]; then
            echo "Checking root file system."

            case `/sbin/fstyp /dev/root` in
                "hfs")  /sbin/fsck -F hfs -P -f /dev/rroot
                        ;;
                "vxfs") /sbin/fsck -F vxfs -y  /dev/rroot
                        ;;
                *)      :
                        ;;
            esac

            echo "Root check done."

    else
            echo "The device file /dev/rroot does not exist or is not correct."
            echo "Automatic checks of the root file system not performed."
    fi
fi
