#!/bin/sh
case "$DPKG_MAINTSCRIPT_PACKAGE" in
    linux-image-*)
	# lilo will be updated later by the kernel postinst hook; no
	# need to update it now.
	exit 0
	;;

    *)
    if [ -f /sbin/lilo ]; then
	if [ -e /etc/lilo.conf ]; then
	    lilo </dev/null >&2
	else
	    echo >&2 "Warning: Not updating LILO; /etc/lilo.conf not found"
	fi
    fi
	;;
esac
