This file is indexed.

postinst is in binfmt-support 2.0.8.

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
24
25
26
27
28
29
30
31
#! /bin/sh

set -e

if [ "$1" = configure ]; then
    update-binfmts --import || true

    if dpkg --compare-versions "$2" lt 2.0.0; then
	rm -rf /var/cache/binfmts
    fi
fi

if [ -e /etc/rc2.d/S20binfmt-support ]; then
    update-rc.d -f binfmt-support remove >/dev/null 2>&1
fi

if [ -e /etc/rc0.d/K90binfmt-support ]; then
    rm -f /etc/rc0.d/K90binfmt-support /etc/rc6.d/K90binfmt-support
fi

# Automatically added by dh_installinit
if [ -e "/etc/init/binfmt-support.conf" ]; then
	invoke-rc.d binfmt-support start || true
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f binfmt-support remove >/dev/null || true
# End automatically added section


exit 0