while read src dest do sed -e '/^swat.*swat$/d' $dest >/tmp/$$swat || exit 2 cat $src >>/tmp/$$swat || exit 2 # Use cp;rm instead of mv because $dest might be a symlink cp -f /tmp/$$swat $dest || exit 2 rm -f /tmp/$$swat done if [ "$1" = ENDOFCLASS ] then # If local install, restart inetd if [ -z "${PKG_INSTALL_ROOT}" ] then TARGET=`hostname` kill -HUP `ps -e -o pid,comm | grep inetd | awk '{print $1}'` else TARGET="" fi cat <