This file is indexed.

postinst is in dahdi 1:2.4.1-1ubuntu2.

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

init_failed() {
echo
echo 'Dahdi drivers not found!'
echo

if [ -e /usr/share/doc/dahdi-dkms ]; then
echo "Make sure you have the right kernel headers installed by running:" 
echo "  apt-get install linux-headers-`uname -r`"
echo 
echo "This should automatically compile your drivers."
echo
echo "Then restart the dadhi service:"
echo "  /etc/init.d/dahdi start"
echo
echo "If that fails, try to reconfigure dahdi by running"
echo "  /var/lib/dpkg/info/dahdi-dkms.postinst configure"
echo "and file a bug in launchpad with the error log."
echo
fi
}

# Automatically added by dh_installinit
if [ -x "/etc/init.d/dahdi" ]; then
	if [ ! -e "/etc/init/dahdi.conf" ]; then
		update-rc.d dahdi defaults 15 30 >/dev/null
	fi
	invoke-rc.d dahdi start || init_failed
fi
# End automatically added section