This file is indexed.

postinst is in pconsole 1.0-12.

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

set -e

# Use debconf.
. /usr/share/debconf/confmodule

# nothing to do in here if we aren't called with configure
if [ "$1" != configure ]; then
        exit 0
fi

[ -e /usr/share/debconf/confmodule ] && {
        db_get pconsole/setuid
        setuid="$RET"
}

if ! dpkg-statoverride --list /usr/lib/pconsole/pconsole >/dev/null ; then
        if [ "$setuid" = "true" ] ; then
                chmod 4755 /usr/lib/pconsole/pconsole
        elif [ "$setuid" = "false" ] ; then
                chmod 0755 /usr/lib/pconsole/pconsole
        fi
fi

db_go || true
db_stop

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section


exit 0