#!/bin/sh
#
# The following script adds the 'auditconfig -aconf' string to
# /etc/security/audit_startup if required.
#
#     

STARTUP=$ROOTDIR/etc/security/audit_startup

# Check to see if the audit_startup file exists
if [ -f ${STARTUP} ]; then

    # If audit_startup exists, check if the 'aconf' string already present
 
    /usr/bin/grep '\-aconf' $STARTUP

    # If 'aconf' string not present, we add the needed auditconfig line

    if [ "$?" -ne "0" ]; then
        echo "auditconfig -aconf" >> $STARTUP
    fi
fi

exit 0

