This file is indexed.

postinst is in ocfs2-tools 1.6.4-3.1.

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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh

set -e

## Source debconf library.
. /usr/share/debconf/confmodule

if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
    db_get ocfs2-tools/init
    O2CB_ENABLED="$RET"
    db_get ocfs2-tools/clustername
    O2CB_BOOTCLUSTER="$RET"
    db_get ocfs2-tools/heartbeat_threshold
    O2CB_HEARTBEAT_THRESHOLD="$RET"
    db_get ocfs2-tools/idle_timeout
    O2CB_IDLE_TIMEOUT_MS="$RET"
    db_get ocfs2-tools/keepalive_delay
    O2CB_KEEPALIVE_DELAY_MS="$RET"
    db_get ocfs2-tools/reconnect_delay
    O2CB_RECONNECT_DELAY_MS="$RET"

    cat > /etc/default/o2cb <<EOF
#
# This is a configuration file for automatic startup of the O2CB
# driver.  It is generated by running 'dpkg-reconfigure ocfs2-tools'.
# Please use that method to modify this file.
#

# O2CB_ENABLED: 'true' means to load the driver on boot.
O2CB_ENABLED=${O2CB_ENABLED:-false}

# O2CB_BOOTCLUSTER: If not empty, the name of a cluster to start.
O2CB_BOOTCLUSTER=${O2CB_BOOTCLUSTER}

# O2CB_HEARTBEAT_THRESHOLD: Iterations before a node is considered dead.
O2CB_HEARTBEAT_THRESHOLD=${O2CB_HEARTBEAT_THRESHOLD}

# O2CB_IDLE_TIMEOUT_MS: Time in ms before a network connection is considered dead.
O2CB_IDLE_TIMEOUT_MS=${O2CB_IDLE_TIMEOUT_MS}

# O2CB_KEEPALIVE_DELAY_MS: Max. time in ms before a keepalive packet is sent.
O2CB_KEEPALIVE_DELAY_MS=${O2CB_KEEPALIVE_DELAY_MS}

# O2CB_RECONNECT_DELAY_MS: Min. time in ms between connection attempts.
O2CB_RECONNECT_DELAY_MS=${O2CB_RECONNECT_DELAY_MS}

EOF

fi

# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/o2cb" ]; then
		update-rc.d o2cb start 41 S . stop 6 0 6 . >/dev/null
	fi
	if [ -x "/etc/init.d/o2cb" ] || [ -e "/etc/init/o2cb.conf" ]; then
		invoke-rc.d o2cb start || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/ocfs2" ]; then
		update-rc.d ocfs2 start 65 S . stop 2 0 6 . >/dev/null
	fi
	if [ -x "/etc/init.d/ocfs2" ] || [ -e "/etc/init/ocfs2.conf" ]; then
		invoke-rc.d ocfs2 start || exit $?
	fi
fi
# End automatically added section