
#	START NEW ARIX SCCS HEADER
#
#	@(#) syscheck: version 25.4 created on 3/10/92 at 16:17:56
#
#	Copyright (c) 1990 by Arix Corporation
#	All Rights Reserved
#
#	@(#)syscheck	25.4	3/10/92 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
            return
        fi
        if [ "$a" = "n" ]
        then
            /etc/init 1
            return
        fi
    done
fi
