postinst is in memtest86+ 4.20-1.1ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ "$1" = configure ]; then
db_get shared/memtest86-run-lilo
if [ "$RET" = true ] &&
[ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] &&
grep "image.*=.*/boot/memtest86+.bin" /etc/lilo.conf >/dev/null
then
lilo
fi
if [ -e /boot/grub/grub.cfg ] && [ -x "`which update-grub2 2>/dev/null`" ] ; then
update-grub2
fi
fi
|