| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
# Remove a no-longer used conffile |
| 6 |
rm_conffile() { |
| 7 |
CONFFILE="$1" |
| 8 |
|
| 9 |
if [ -e "$CONFFILE" ]; then |
| 10 |
echo "Removing obsolete conffile $CONFFILE ..." |
| 11 |
rm -f "$CONFFILE" |
| 12 |
fi |
| 13 |
} |
| 14 |
|
| 15 |
case "$1" in |
| 16 |
install|upgrade) |
| 17 |
# Version 4.20-5.1 (etch) left obsolete conffile behind. |
| 18 |
rm_conffile "/etc/X11/fonts/X11R7/misc/xfonts-terminus.alias" |
| 19 |
;; |
| 20 |
|
| 21 |
abort-upgrade) |
| 22 |
;; |
| 23 |
|
| 24 |
*) |
| 25 |
echo "preinst called with unknown argument \`$1'" >&2 |
| 26 |
exit 1 |
| 27 |
;; |
| 28 |
esac |
| 29 |
|
| 30 |
#DEBHELPER# |
| 31 |
|
| 32 |
exit 0 |