#!/bin/sh
set -e

# Source debconf library
[ -e /usr/share/debconf/confmodule ] || exit 0
. /usr/share/debconf/confmodule

if [ "$1" = "configure" ] && [ "$2" != "" ]; then
	if dpkg --compare-versions "$2" lt "0.6"; then
		db_input low ifupdown/convert-interfaces || true
		db_go
	fi
fi

db_stop
