blob: d7c484c174b54eb8d09708edf5cffb5a9e1c6c17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# vim:ts=2:sw=2:et
set -e
case "$1" in
purge)
# Remove dangling links from mods-enabled.
for link in /etc/freeradius/3.0/mods-enabled/dhcp; do
if [ -L "$link" ] && [ ! -e "$link" ]; then
rm -f "$link"
fi
done
# rmdir fails when called on a directory which does not exist
if [ -d /etc/freeradius ]; then
rmdir --ignore-fail-on-non-empty /etc/freeradius
fi
;;
esac
#DEBHELPER#
exit 0
|