logo

widrop

[mirror] WiDrop distribution, now defunct
commit: e9ae7d36b87c48ebf82833823943b8c0c67bf6dc
parent 320a1ed507134d935223546827a4e80ae133d81f
Author: Mathieu Goessens <mathieu@breizh-entropy.org>
Date:   Mon, 24 Dec 2012 10:04:22 +0100

Call lighty-remove-mod widrop when uninstalling widrop-lighttpd

Diffstat:

MTODO1-
Asrc/pkg/widrop-lighttpd/DEBIAN/postrm13+++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/TODO b/TODO @@ -7,7 +7,6 @@ * use debconf to share configuration betwen - widrop, widrop-hostapd: for ssid and channel - widrop, widrop-hostapd, widrop-common, widrop-dnsmasqd, widrop-iptables: for interface name -* lighty-remove-mod in postrm * use a template for /etc/network/interface and cat instead of having the file in package * package for gpg key * put firmwares in recommends in widrop-firmwares diff --git a/src/pkg/widrop-lighttpd/DEBIAN/postrm b/src/pkg/widrop-lighttpd/DEBIAN/postrm @@ -0,0 +1,13 @@ +#!/bin/h + +case $1 in + "remove") + echo Removing lighttpd configuration for widrop + [[ -f /etc/lighttpd/conf-enabled/00-widrop.conf ]] || ( + lighty-disabled-mod widrop + /etc/init.d/lighttpd force-reload + ) + ;; +esac + +exit 0