HTTPD_CONF=/usr/local/etc/apache2/httpd.conf
    	apache_update_file() {
    cmp $1 $2 >/dev/null 2>&1
    if test $? -ne 0 -a -s $2; then
mv -f $1 "$1.$3"
mv -f $2 $1
echo $1 was updated - please restart httpd
    else
rm -f $2
    fi
}
if test -w ${HTTPD_CONF}; then
    sed -e '/^LoadModule.*mod_speedycgi.so/d' \
-e '/^AddModule.*mod_speedycgi/d' \
${HTTPD_CONF} >${HTTPD_CONF}.$$
    apache_update_file ${HTTPD_CONF} ${HTTPD_CONF}.$$ old
fi
