#!/bin/sh

set -e

# offer to run LILO
# (adapted from snippet by chr.ohm@gmx.net)
if [ -x /sbin/lilo -a -r /etc/lilo.conf ] && 
	grep "image.*=.*/boot/memtest86.bin" /etc/lilo.conf >/dev/null
then
    echo "You seem to have an entry for memtest86 in /etc/lilo.conf."
    read -p "Run lilo now [y/N]? " c
    if [ "$c" = "y" -o "$c" = "Y" ]
    then
	/sbin/lilo
    fi
fi

#DEBHELPER#
