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

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

adding dnsmasq

  • Property svn:executable set to *
File size: 595 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 ${NEW_FILE} ] ; then
18                        rm -rf $LLIUREX_FILE || true
19                        dpkg-divert --package  ${PACKAGE_NAME} --rename --quiet --remove ${ORIG_FILE}|| true
20                fi
21
22                ;;
23        *)
24                echo "Nothing to do"
25                ;;
26esac
27
28#DEBHELPER#
29
30exit 0
31
Note: See TracBrowser for help on using the repository browser.