#!/bin/sh # # 20060217: configure IPFilter # There's also an entry in /var/svc/profile/site.xml to enable the service. echo "configuring IPFilter" FILE=${INSTALL_DST}/etc/ipf/pfil.ap for if in `ifconfig -a | grep UP | grep -v ^lo | cut -d: -f1` do echo "enabling IPFilter for interface '$if'" sed -e "/$if/s/#//" < $FILE > $FILE.$$ mv $FILE.$$ $FILE done # # 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