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 | |
---|
3 | set -e |
---|
4 | |
---|
5 | # Template for diversions |
---|
6 | |
---|
7 | PACKAGE_NAME="n4d-dnsmasq" |
---|
8 | ORIGINAL_FILE="/lib/systemd/system/dnsmasq.service" |
---|
9 | DIVERT_FILE="$ORIGINAL_FILE.divert" |
---|
10 | LLIUREX_FILE="/usr/share/n4d-dnsmasq/dnsmasq.service" |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | case $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 | ;; |
---|
26 | esac |
---|
27 | |
---|
28 | #DEBHELPER# |
---|
29 | |
---|
30 | exit 0 |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.