postinst is in freeradius-dhcp 3.0.16+dfsg-1ubuntu3.
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 | #!/bin/sh
# vim:ts=2:sw=2:et
set -e
case "$1" in
configure)
invoke-rc.d freeradius force-reload
if [ -z "$2" ] || dpkg --compare-versions "$2" lt 3.0.11+dfsg-2; then
for module in dhcp; do
if test ! -h /etc/freeradius/3.0/mods-enabled/$module && \
test ! -e /etc/freeradius/3.0/mods-enabled/$module; then
ln -s ../mods-available/$module /etc/freeradius/3.0/mods-enabled/$module
fi
done
fi
;;
esac
exit 0
|