postinst is in linux-image-extra-3.16.0-44-generic 3.16.0-44.59~14.04.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 | #!/bin/sh
set -e
case "$0::$1" in
*.postinst::configure|*.postrm::remove)
depmod -a -F /boot/System.map-3.16.0-44-generic 3.16.0-44-generic || true
for dir in "/etc/kernel/postinst.d" "/etc/kernel/postinst.d/3.16.0-44-generic"
do
if [ -d "$dir" ]; then
run-parts --verbose --exit-on-error --arg="3.16.0-44-generic" --arg="/boot/vmlinuz-3.16.0-44-generic" "$dir"
fi
done
;;
esac
|