This file is indexed.

postinst is in slay 3.0.0.

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

set -e

# Source debconf library.
. /usr/share/debconf/confmodule

# Build config file based on answers... IF NECESSARY ONLY
if test -n "$2"
then
 if dpkg --compare-versions $2 lt 1.2.7 || test ! -e /etc/slay_mode
 then

  db_get slay/punish
  if [ "$RET" = "true" ]
  then
   echo "mean" > /etc/slay_mode
  else
   echo "nice" > /etc/slay_mode
  fi

  db_get slay/butthead
  if [ "$RET" = "true" ]
  then
   echo "butthead" >> /etc/slay_mode
  else
   echo "normal" >> /etc/slay_mode
  fi

 fi
fi
# (yes, I know this was ugly)