Imported initial Debian directory
[rrq/maintain_lilo.git] / debian / lilo.initramfs-post-update
1 #!/bin/sh
2 case "$DPKG_MAINTSCRIPT_PACKAGE" in
3     linux-image-*)
4         # lilo will be updated later by the kernel postinst hook; no
5         # need to update it now.
6         exit 0
7         ;;
8     *)
9         if [ -e /etc/lilo.conf ]; then
10             lilo </dev/null >&2
11         else
12             echo >&2 "Warning: Not updating LILO; /etc/lilo.conf not found"
13         fi
14         ;;
15 esac