
# Check to see if we have IPAT confifured by looking for harc.net in inittab.
# If present, rerun clchipat to get the /etc/rc.net file updated properly to
# play nicely with our new harc.net.
# NOTE: The reverse of this operation is done in the config_u.sh script.

CLUSTDIR="/usr/es/sbin/cluster"
/usr/sbin/lsitab harc 2>&1 > /dev/null
if (( $? == 0 )) && [[ -x $CLUSTDIR/utilities/clchipat ]]
then
   $CLUSTDIR/utilities/clchipat false
   $CLUSTDIR/utilities/clchipat true

   # Force the files to be synced
   if [ ! "${INUCLIENTS}${INUBOSTYPE}" ]; then
     /usr/bin/syscall open /etc/rc.net 2 0 \; fsync \$0 \; close \$0
     /usr/bin/syscall open /etc/inittab 2 0 \; fsync \$0 \; close \$0
   fi
fi
true
