#!/bin/sh
#
# $MidnightBSD$

MPM_FALLBACK="/usr/local/etc/apache24/modules.d/000_mpm_prefork_fallback.conf"

_cleanup(){
	if [ -f ${MPM_FALLBACK} ]; then
		echo -n "remove fallback MPM : "
		/bin/rm -vf ${MPM_FALLBACK}
	fi
}

# run only if build with modular MPM
if [ "x$2" = "xDEINSTALL" ]; then
	_cleanup
fi

