home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / var / lib / dpkg / info / memtest86+.postinst < prev    next >
Encoding:
Text File  |  2005-10-25  |  392 b   |  20 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. # offer to run LILO
  6. # (adapted from snippet by chr.ohm@gmx.net)
  7. if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] && 
  8.     grep "image.*=.*/boot/memtest86+.bin" /etc/lilo.conf >/dev/null
  9. then
  10.     echo "You seem to have an entry for memtest86+ in /etc/lilo.conf."
  11.     printf "Run lilo now [y/N]? "
  12.     read c
  13.     if [ "$c" = "y" ] || [ "$c" = "Y" ]
  14.     then
  15.     /sbin/lilo
  16.     fi
  17. fi
  18.  
  19.  
  20.