summaryrefslogtreecommitdiffstats
path: root/debian/freeradius-dhcp.postinst
blob: b8f2c7c22ad82a5573841510649e86b20f2c9f8b (plain)
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 || 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