postinst is in dahdi 1:2.7.0-1ubuntu1.
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
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" ] || [ -e "/etc/init/dahdi.conf" ]; then
if [ ! -e "/etc/init/dahdi.conf" ]; then
update-rc.d dahdi defaults >/dev/null
fi
invoke-rc.d dahdi start || init_failed
fi
# End automatically added section
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
if [ -e "/etc/udev/rules.d/z60_dahdi.rules" ]; then
echo "Preserving user changes to /etc/udev/rules.d/40-dahdi.rules ..."
if [ -e "/etc/udev/rules.d/40-dahdi.rules" ]; then
mv -f "/etc/udev/rules.d/40-dahdi.rules" "/etc/udev/rules.d/40-dahdi.rules.dpkg-new"
fi
mv -f "/etc/udev/rules.d/z60_dahdi.rules" "/etc/udev/rules.d/40-dahdi.rules"
fi
fi
# End automatically added section
|