49e56734fbed443bbdeef6e24c240f1acf48b8b2
[debian/elilo] / debian / elilo.initramfs-post-update
1 #!/bin/sh
2 case "$DPKG_MAINTSCRIPT_PACKAGE" in
3     linux-image-*)
4         # elilo 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/elilo.conf ]; then
10             elilo </dev/null >&2
11         else
12             echo >&2 "elilo: Not updating; /etc/elilo.conf not found"
13         fi
14         ;;
15 esac