home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- set -e
-
- # offer to run LILO
- # (adapted from snippet by chr.ohm@gmx.net)
- if [ -x /sbin/lilo ] && [ -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."
- printf "Run lilo now [y/N]? "
- read c
- if [ "$c" = "y" ] || [ "$c" = "Y" ]
- then
- /sbin/lilo
- fi
- fi
-
-
-