diff options
Diffstat (limited to '')
-rw-r--r-- | debian/freeradius-dhcp.postinst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/freeradius-dhcp.postinst b/debian/freeradius-dhcp.postinst new file mode 100644 index 0000000..b8f2c7c --- /dev/null +++ b/debian/freeradius-dhcp.postinst @@ -0,0 +1,23 @@ +#!/bin/sh +# vim:ts=2:sw=2:et + +set -e + +case "$1" in + configure) + invoke-rc.d freeradius force-reload || true + + if [ -z "$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 + +#DEBHELPER# + +exit 0 |