#!/bin/sh # echo "updating syslogd settings" FILE=${INSTALL_DST}/etc/default/syslogd # # Disable LOG_FROM_REMOTE # this prevents syslogd from listening for connections # VAR=LOG_FROM_REMOTE VALUE=NO TFILE=${FILE}.$$ sed -e "s/^[# ]*${VAR}=.*\$/${VAR}=${VALUE}/" ${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|^${INSTALL_DST}||g"` PERM=`grep "^${IFILE} e" ${INSTALL_DST}/var/sadm/install/contents | (read f1 f2 f3 f4 f5 ; echo $f4)` chmod ${PERM} ${FILE} exit 0