Fix typos and phrases in manpage of lilo.conf
[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 # remove old-named config files
11 dpkg-maintscript-helper rm_conffile \
12   /etc/kernel/postinst.d/zz-lilo  1:22.8-10 lilo -- "$@"
13
14 dpkg-maintscript-helper rm_conffile \
15   /etc/kernel/postrm.d/zz-lilo    1:22.8-10 lilo -- "$@"
16
17 dpkg-maintscript-helper rm_conffile \
18   /etc/kernel/postinst.d/zz-lilo  1:22.8-10 lilo -- "$@"
19
20 dpkg-maintscript-helper rm_conffile \
21   /etc/initramfs/post-update.d/lilo  1:22.8-10 lilo -- "$@"
22
23
24 # targets: install|upgrade|abort-upgrade
25
26 case "$1" in
27     install|upgrade|abort-upgrade)
28                 if test -L /boot/debian.bmp; then
29                         rm -f /boot/debian.bmp;
30                 fi
31                 for i in ${BMPS}; do
32                         rm -f /boot/${i}.bmp /boot/${i}.dat /boot/${i}*bmp.conf;
33                 done
34         ;;
35         *)
36                 echo "postinst called with unknown argument \`$1'" >&2
37                 exit 1
38         ;;
39 esac
40
41 # dh_installdeb will replace this with shell code automatically
42 # generated by other debhelper scripts.
43
44 #DEBHELPER#
45
46 exit 0