Update debconf files: lilo.config, lilo.templates
[rrq/maintain_lilo.git] / debian / lilo.preinst
1 #!/bin/sh
2 # preinst script lilo
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 BMPS="sarge sid"
9
10 # targets: install|upgrade|abort-upgrade
11
12 case "$1" in
13     install|upgrade|abort-upgrade)
14                 if test -L /boot/debian.bmp; then
15                         rm -f /boot/debian.bmp;
16                 fi
17                 for i in ${BMPS}; do
18                         rm -f /boot/${i}.bmp /boot/${i}.dat /boot/${i}*bmp.conf;
19                 done
20         ;;
21         *)
22                 echo "postinst called with unknown argument \`$1'" >&2
23                 exit 1
24         ;;
25 esac
26
27 # dh_installdeb will replace this with shell code automatically
28 # generated by other debhelper scripts.
29
30 #DEBHELPER#
31
32 exit 0