source: n4d-dnsmasq/trunk/fuentes/debian/n4d-dnsmasq.prerm

Last change on this file was 796, checked in by hectorgh, 5 years ago

fixing prerm

  • Property svn:executable set to *
File size: 638 bytes
Line 
1#!/bin/sh
2
3set -e
4
5# Template for diversions
6
7PACKAGE_NAME="n4d-dnsmasq"
8ORIGINAL_FILE="/lib/systemd/system/dnsmasq.service"
9DIVERT_FILE="$ORIGINAL_FILE.divert"
10LLIUREX_FILE="/usr/share/n4d-dnsmasq/dnsmasq.service"
11
12
13
14case $1 in
15        remove|purge|abort-install|disappear)
16
17                if [ -f ${DIVERT_FILE} ] ; then
18                        rm -rf $ORIGINAL_FILE || true
19                        dpkg-divert --package  ${PACKAGE_NAME} --rename --quiet --remove ${ORIGINAL_FILE}|| true
20                        systemctl daemon-reload || true
21                fi
22
23                ;;
24        *)
25                echo "Nothing to do"
26                ;;
27esac
28
29#DEBHELPER#
30
31exit 0
32
Note: See TracBrowser for help on using the repository browser.