postinst is in kmod 15-0ubuntu7.
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 | #!/bin/sh -e
create_etc_modules() {
[ -e /etc/modules ] && return 0
cat <<END > /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
END
chmod 644 /etc/modules
}
case "$1" in
configure)
create_etc_modules
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/kmod" ]; then
if [ ! -e "/etc/init/kmod.conf" ]; then
update-rc.d kmod start 15 S . >/dev/null
fi
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f kmod remove >/dev/null || exit $?
# End automatically added section
exit 0
|