#!/bin/sh
set -e

action=$1
version=$2

# package versions < 0.9.8-1 had the configuration file in a
# non-standard location
if [ "$action" = configure -a -n "$version" ] &&
    dpkg --compare-versions "$version" lt "1:0.9.8-1" &&
    test -f /etc/conntrackd.conf.dpkg-updating
then
    # unmodified version, delete without prompting
    rm /etc/conntrackd.conf.dpkg-updating
fi

#DEBHELPER#