3 # zz-runlilo - postrm script for modern kernel management
5 # Copyright 2010 Joachim Wiedorn
8 # Licensed under the terms contained in the file 'COPYING'
9 # in the source directory.
15 # check for maintainer param
16 if [ -n "${DEB_MAINT_PARAMS}" ]; then
18 if [ `echo "${DEB_MAINT_PARAMS}" | grep -v abort | grep -c remove` -eq 1 ]
22 # check for configure|upgrade|remove|purge
26 # Run the boot loader installer
27 if [ -f /sbin/lilo ]; then
28 if [ -f /etc/lilo.conf ]; then
29 # Do not abort kernel removal in case of error
30 lilo </dev/null >&2 || true