This file is indexed.

postinst is in sysprofile 0.3.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
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin

set -e




if [ `grep -c '\/etc\/sysprofile' /etc/profile` = 0 ]; then
    echo ""
    echo "      There is no entry for '/etc/sysprofile'"
    echo "      in this system's '/etc/profile' file."
    echo "      "
    echo "      If you want /etc/sysprofile be sourced"
    echo "      by default, append these lines to" 
    echo "      /etc/profile for login shells:"
    echo ""
    echo "          if [ -f /etc/sysprofile ]; then"
    echo "               . /etc/sysprofile"
    echo "          fi"
    echo ""
    echo "      Example files for /etc/sysprofile.d/ can be found in"
    echo "      \"/usr/share/doc/sysprofile/examples/\"."
    echo ""
fi

if [ `grep -c '\/etc\/sysprofile' /etc/bash.bashrc` = 0 ]; then
    echo ""
    echo "      There is no entry for '/etc/sysprofile'"
    echo "      in this system's '/etc/bash.bashrc' file."
    echo "      "
    echo "      If you want /etc/sysprofile be sourced for"
    echo "      non-login bash shells by default as well," 
    echo "      append these lines to /etc/bash.bashrc:"
    echo ""
    echo "          if [ -f /etc/sysprofile ]; then"
    echo "               . /etc/sysprofile"
    echo "          fi"
    echo ""
    echo "      Example files for /etc/sysprofile.d/ can be found in"
    echo "      \"/usr/share/doc/sysprofile/examples/\"."
    echo ""
fi