This file is indexed.

postinst is in liblockdev1 1.0.3-1.5build1.

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
#!/bin/sh -e

if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl 1.0.3-1;
then
  echo
  echo "WARNING"
  echo "Format of device lock files have changed, you will need to restart all"
  echo "programs that have locked device files using the old version of liblockdev."
  echo

  if ls /var/lock/LCK.[0-9]* 2>/dev/null
  then
    echo "Right now the following programs use old lockfiles:"
    echo
    ps -p `cat /var/lock/LCK.[0-9]*`
    echo
  fi
fi

# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
	ldconfig
fi
# End automatically added section


exit 0