This file is indexed.

postinst is in selinux-basics 0.5.2.

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh -e

case "$1" in
    configure)
    for n in /boot/grub/menu.lst /etc/default/grub ; do
      if [ -f $n ]; then
        if grep -q selinux=1 $n ; then
          if ! grep -q security=selinux $n ; then
            sed -e "s/selinux=1/selinux=1 security=selinux/" < $n > $n.new
            mv $n.new $n
            update-grub
          fi
        fi
      fi
    done
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
    echo "$0 called with unknown argument '$1'" >&2
    exit 1
    ;;
esac


# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
	pycompile -p selinux-basics /usr/share/selinux-basics -V 2.5-
fi

# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/selinux-basics" ]; then
	if [ ! -e "/etc/init/selinux-basics.conf" ]; then
		update-rc.d selinux-basics start 36 S . >/dev/null
	fi
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/udev/no-legacy-ptys.rules 0.5.1~ -- "$@"
# End automatically added section


exit 0