3
name=`basename $0 .postrm`
4
base=`echo $name | cut -d "-" -f "1"`
5
file="/etc/$base.d/$name.ini"
9
# mimic dpkg as closely as possible, so remove configuration
10
# files with dpkg backup extensions too:
11
for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do
15
# remove the configuration file itself
18
# and finally clear it out from the ucf database
21
remove|disappear|upgrade|failed-upgrade|abort-install|abort-upgrade)
24
echo "$0: didn't understand being called with \`$1'" 1>&2