Forgot to attach...

More about it:

  - Invokes update-grub in postinst and postrm
  - Does NOT rely on absolute paths (if you really want to know
    why, check grub changelog).
  - Does NOT check for menu.lst (it is implementation-specific, and
    not found in e.g. grub2).

-- 
Robert Millan

My spam trap is [EMAIL PROTECTED]  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
diff -Nur memtest86+-1.65.old/debian/postinst memtest86+-1.65/debian/postinst
--- memtest86+-1.65.old/debian/postinst	2007-02-25 21:58:48.000000000 +0100
+++ memtest86+-1.65/debian/postinst	2007-02-25 22:01:28.000000000 +0100
@@ -16,4 +16,8 @@
     fi
 fi
 
+if which update-grub > /dev/null ; then
+  update-grub
+fi
+
 #DEBHELPER#
diff -Nur memtest86+-1.65.old/debian/postrm memtest86+-1.65/debian/postrm
--- memtest86+-1.65.old/debian/postrm	1970-01-01 01:00:00.000000000 +0100
+++ memtest86+-1.65/debian/postrm	2007-02-25 22:02:27.000000000 +0100
@@ -0,0 +1,7 @@
+#!/bin/bash -e
+
+if which update-grub > /dev/null ; then
+  update-grub
+fi
+
+#DEBHELPER#

Reply via email to