Projekt

Obecné

Profil

Stáhnout (530 Bajtů) Statistiky
| Větev: | Tag: | Revize:
5af3ffcf Ondřej Fibich
#!/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
update-rc.d -f freenetis-qos remove

# 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

exit 0