: "@(#)sysrc	5.1	6/10/86"

EXIT_OK=0
EXIT_NO_RL=1
EXIT_MAX=1

trap "" 1 2 3
echo this is the /ros/sysrc file

set `who -r`
if [ $# -lt 7 ]
then
    echo $0: Run-level not specified in /etc/utmp. 1>&2
    exit $EXIT_NO_RL
else
    runLevel=$7
fi

# Now start drivers based on the current run-level
#     status is: 0 = ok
#                1 = bad args
#                2 = no /etc/config file to process
#                3 = some driver failed to initialize
#                4 = /etc/config format is bad
/etc/configure $runLevel
status=$?
if [ $status -ne 0 ]
then
    status=`expr $status + $EXIT_MAX`
fi

exit $status
