X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=debian%2Flilo.postinst;h=cc03366c6f51512501db480da5f545f9afdfab89;hb=04dffcb9f6f560975833d0283ccb27ca25081d9e;hp=11a899f8945986e6549a7d82916a8964622406bc;hpb=49e489f4c3e75e13f92bd14075cc5b8dd10f9cee;p=rrq%2Fmaintain_lilo.git diff --git a/debian/lilo.postinst b/debian/lilo.postinst index 11a899f..cc03366 100644 --- a/debian/lilo.postinst +++ b/debian/lilo.postinst @@ -11,6 +11,20 @@ if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi +# remove old-named config files +dpkg-maintscript-helper rm_conffile \ + /etc/kernel/postinst.d/zz-lilo 1:22.8-10 lilo -- "$@" + +dpkg-maintscript-helper rm_conffile \ + /etc/kernel/postrm.d/zz-lilo 1:22.8-10 lilo -- "$@" + +dpkg-maintscript-helper rm_conffile \ + /etc/kernel/postinst.d/zz-lilo 1:22.8-10 lilo -- "$@" + +dpkg-maintscript-helper rm_conffile \ + /etc/initramfs/post-update.d/lilo 1:22.8-10 lilo -- "$@" + + # targets: configure|abort-upgrade|abort-remove|abort-deconfigure case "$1" in @@ -44,13 +58,6 @@ case "$1" in ln -s debian.bmp /boot/${i}.bmp done - if test -f /etc/kernel/postinst.d/zz-lilo; then - rm -f /etc/kernel/postinst.d/zz-lilo; fi - if test -f /etc/kernel/postrm.d/zz-lilo; then - rm -f /etc/kernel/postrm.d/zz-lilo; fi - if test -f /etc/initramfs/post-update.d/lilo; then - rm -f /etc/initramfs/post-update.d/lilo; fi - # Nasty part to create network block devices if needed. Bug#235805. if [ `uname -r | sed -e 's/-.*//g' -ne 's/\(^[0-9]\{1\}\.[0-9]\{1,2\}\).*/\1/p'` = "2.6" ] && \ [ `uname -r | sed -e 's/-.*//g' -ne 's/.*\.\([0-9]\{1,3\}\).*/\1/p'` -ge "3" ]; then