42.1.12
by Marc Tardif
Extended configuration file model to centralize variables in a single location to fix bug #149630. This also made it possible to simplify extensively each package derived from hwtest. |
1 |
#! /bin/sh -e
|
2 |
||
362
by Marc Tardif
Added hwtest.postrm which fixes bug #257746. |
3 |
name=`basename $0 .postrm` |
4 |
base=`echo $name | cut -d "-" -f "1"` |
|
5 |
file="/etc/$base.d/$name.ini" |
|
42.1.12
by Marc Tardif
Extended configuration file model to centralize variables in a single location to fix bug #149630. This also made it possible to simplify extensively each package derived from hwtest. |
6 |
|
7 |
case "$1" in |
|
8 |
purge)
|
|
237
by ubuntu
Added workaround for python-support when purging the package on Dapper. |
9 |
# mimic dpkg as closely as possible, so remove configuration
|
42.1.12
by Marc Tardif
Extended configuration file model to centralize variables in a single location to fix bug #149630. This also made it possible to simplify extensively each package derived from hwtest. |
10 |
# files with dpkg backup extensions too:
|
11 |
for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do |
|
362
by Marc Tardif
Added hwtest.postrm which fixes bug #257746. |
12 |
rm -f $file$ext
|
42.1.12
by Marc Tardif
Extended configuration file model to centralize variables in a single location to fix bug #149630. This also made it possible to simplify extensively each package derived from hwtest. |
13 |
done
|
14 |
||
15 |
# remove the configuration file itself
|
|
362
by Marc Tardif
Added hwtest.postrm which fixes bug #257746. |
16 |
rm -f $file
|
42.1.12
by Marc Tardif
Extended configuration file model to centralize variables in a single location to fix bug #149630. This also made it possible to simplify extensively each package derived from hwtest. |
17 |
;;
|
18 |
remove|disappear|upgrade|failed-upgrade|abort-install|abort-upgrade) |
|
19 |
;;
|
|
20 |
*)
|
|
21 |
echo "$0: didn't understand being called with \`$1'" 1>&2 |
|
22 |
exit 0 |
|
23 |
;;
|
|
24 |
esac
|
|
25 |
||
26 |
#DEBHELPER#
|