This file is indexed.

postinst is in nvidia-settings 304.88-0ubuntu0.0.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
#!/bin/sh
# Copyright (C) 2011 Canonical Ltd
# Authors: Alberto Milone
set -e

PACKAGE_NAME=nvidia-settings

case "$1" in
    configure)
        # Deal with alternatives
        update-alternatives --force \
            --install /etc/ld.so.conf.d/nvidia_settings.conf nvidia_settings_conf /usr/lib/nvidia-settings/ld.so.conf 9700 \
            --slave /usr/share/man/man1/nvidia-settings.1.gz man_nvidiasettings.gz /usr/lib/nvidia-settings/share/man/man1/alt-nvidia-settings.1.gz \
            --slave /usr/bin/nvidia-settings nvidia_settings /usr/lib/nvidia-settings/bin/nvidia-settings \
            --slave /usr/include/NVCtrl nvctrl_include /usr/lib/nvidia-settings/include/NVCtrl \
            --slave /usr/lib/libXNVCtrl.a libxnvctrl.a /usr/lib/nvidia-settings/libXNVCtrl.a

        # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with
        # alternatives.
        LDCONFIG_NOTRIGGER=y ldconfig

        # Trigger gmenu so that the icons will show up in the menu
        dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true

        ;;

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

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