#!/bin/sh -e

if [ -f /etc/firehol.conf ]
then
	mv -f /etc/firehol.conf /etc/firehol/firehol.conf
	echo
	echo
	echo "FireHOL has now its configuration in /etc/firehol/firehol.conf"
	echo "Your existing configuration has been moved to its new place."
	echo
fi

case "$1" in
	configure)
		update-rc.d firehol start 38 S . start 36 0 6 . > /dev/null
		;;

	abort-upgrade|abort-remove|abort-deconfigure)
		;;
esac
