Projekt

Obecné

Profil

Stáhnout (551 Bajtů) Statistiky
| Větev: | Tag: | Revize:
#!/bin/sh
# FreenetIS-qos DEB: actions before uninstalling of package

set -e
. /usr/share/debconf/confmodule

NAME=freenetis-qos
CONFIGFILE=/etc/freenetis/freenetis-qos.conf

# disable startup from update-rc.d
set +e
update-rc.d -f ${NAME} remove
set -e

# remove all configuration if purge
if [ "$1" = purge ]; then
# remove defconf values
if [ -e /usr/share/debconf/confmodule ]; then
db_purge
fi
# remove config files
rm -rf $CONFIGFILE
# remove dir if empty
[ "$(ls -A /etc/freenetis)" ] || rm -rf /etc/freenetis
fi

#DEBHELPER#

exit 0
(7-7/9)