#!/bin/sh 

#
# Check to see if we need start aacaifd. We need this daemon only
# on SCO OpenServer and it must be started first if we start it at all;
# therefore, keep this the first check so that our startup script
# will add it first to the list of daemons to startup. We do not stop
# it since once it starts it becomes a thread in kernel land and cannot
# be stopped until the aacraid device driver stops. Also, we do not
# want to stop it if we did not start it.
#

if [ "${installRoot}" = "" ]; then
     installRoot=`ls -l /usr/sbin/arcpd | cut -f2- -d'>' | sed "s/\/sbin.*//" | sed "s/^ *//"`
fi

aacaifd_startd=off
if [ -x "${installRoot}/sbin/aacaifd" -a -c /dev/aac0 ]; then
    #
    # Only start if not already started as a result of device driver setup.
    #
    if [ "`ps -e|grep aacaifd|grep -v grep`" = "" ]; then
        aacaifd_startd=on
    fi
fi


aiomgrd=on
arcpd=on
anotifyd=on
aacsnmpd=off
iomsnmpd=off
