This file is indexed.

postinst is in libopenni-sensor-primesense0 5.1.0.41-3.

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
47
48
49
50
51
52
53
#!/bin/sh

set -e

MODULE_DIR="/usr/lib/"
MODULES="libXnDeviceSensorV2.so.0 libXnDeviceFile.so.0"

case "$1" in
    configure)
        for module in $MODULES; do
          niReg -r $MODULE_DIR/$module /etc/openni
        done
    ;;

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

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

# Automatically added by dh_installmodules
if [ "$1" = configure ]; then
	if [ -e "/etc/modprobe.d/libopenni-sensor-primesense0" ]; then
		echo "Preserving user changes to /etc/modprobe.d/libopenni-sensor-primesense0.conf ..."
		if [ -e "/etc/modprobe.d/libopenni-sensor-primesense0.conf" ]; then
			mv -f "/etc/modprobe.d/libopenni-sensor-primesense0.conf" "/etc/modprobe.d/libopenni-sensor-primesense0.conf.dpkg-new"
		fi
		mv -f "/etc/modprobe.d/libopenni-sensor-primesense0" "/etc/modprobe.d/libopenni-sensor-primesense0.conf"
	fi
fi
# End automatically added section
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
	if [ -e "/etc/udev/rules.d/z60_libopenni-sensor-primesense0.rules" ]; then
		echo "Preserving user changes to /etc/udev/rules.d/40-libopenni-sensor-primesense0.rules ..."
		if [ -e "/etc/udev/rules.d/40-libopenni-sensor-primesense0.rules" ]; then
			mv -f "/etc/udev/rules.d/40-libopenni-sensor-primesense0.rules" "/etc/udev/rules.d/40-libopenni-sensor-primesense0.rules.dpkg-new"
		fi
		mv -f "/etc/udev/rules.d/z60_libopenni-sensor-primesense0.rules" "/etc/udev/rules.d/40-libopenni-sensor-primesense0.rules"
	fi
fi
# End automatically added section
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
	ldconfig
fi
# End automatically added section


exit 0