This file is indexed.

postinst is in memtest86+ 4.20-1.1ubuntu8.

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
19
20
21
22
23
#!/bin/sh
set -e

. /usr/share/debconf/confmodule

running_in_container()
{
  type running-in-container >/dev/null 2>&1 && running-in-container >/dev/null
}

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 ] && type update-grub >/dev/null 2>&1 && ! running_in_container ; then
	update-grub
    fi
fi