
#	START NEW ARIX SCCS HEADER
#
#	@(#) syscheck: version 25.1 created on 12/2/91 at 17:18:45
#
#	Copyright (c) 1990 by Arix Corporation
#	All Rights Reserved
#
#	@(#)syscheck	25.1	12/2/91 Copyright (c) 1990 by Arix Corporation
#
#	END NEW ARIX SCCS HEADER
#
# This shellscript will run the syscheck utility, and will check
# that all files have the correct permissions, labels, sizes, uid's,
# & gid's.  If not, then the system will return to single user.

echo "Verifying system integrity"
/etc/syscheck -c < /etc/security/tcb_list

if [ $? -ne 0 ]
then
    while :
    do
        echo "Error were found during the TCB check"
        echo "Do you want to go to multiuser (y/n)?"
        read a
        if [ "$a" =  "y" ]
        then
            break
        fi
        if [ "$a" = "n" ]
        then
            /etc/init s
            break
        fi
    done
fi

