1while read dest 2do 3 sed -e '/^swat.*swat$/d' $dest >/tmp/$$swat || exit 2 4 # Use cp;rm; instead of mv because $dest might be a symlink 5 cp -f /tmp/$$swat $dest || exit 2 6 rm -f /tmp/$$swat 7done 8 9if [ "$1" = ENDOFCLASS ] 10then 11 if [ -z "$PKG_INSTALL_ROOT" ] 12 then 13 kill -HUP `ps -e -o pid,comm | grep inetd | awk '{print $1}'` 14 fi 15fi 16 17