#!/bin/sh -e

case "$1" in
    configure)
	# continue below
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
	exit 0
    ;;

    *)
	echo "postinst called with unknown argument \`$1'" >&2
	exit 0
    ;;
esac

umask 022

# Update shared libs
/sbin/ldconfig

update-rc.d ntop defaults 93 >/dev/null

# Stop ntop (if any)
/etc/init.d/ntop stop

# Set the administrator password
/etc/init.d/ntop start


exit 0
