#!/bin/sh # echo "updating hosts file settings" FILE=${BASE}/etc/inet/hosts TFILE=${FILE}.$$ sed -e "s/^127.0.0.1[ ]*localhost$/127.0.0.1 localhost loghost/" ${FILE} > ${TFILE} mv ${TFILE} ${FILE} # # Reset the permissions on the new # file to whatever it was set to during the install # IFILE=`echo ${FILE} | sed -e "s|^${BASE}||g"` PERM=`grep "^${IFILE} e" ${BASE}/var/sadm/install/contents | (read f1 f2 f3 f4 f5 ; echo $f4)` chmod ${PERM} ${FILE} exit 0