]> git.ipfire.org Git - people/ms/dnsmasq.git/blob - debian/postrm
Log parsing utils in contrib/reverse-dns
[people/ms/dnsmasq.git] / debian / postrm
1 #!/bin/sh
2 set -e
3
4 if [ purge = "$1" ]; then
5 update-rc.d dnsmasq remove >/dev/null
6 fi
7
8 # Code copied from dh_systemd_enable ----------------------
9 if [ "$1" = "remove" ]; then
10 if [ -x "/usr/bin/deb-systemd-helper" ]; then
11 deb-systemd-helper mask dnsmasq.service >/dev/null
12 fi
13 fi
14
15 if [ "$1" = "purge" ]; then
16 if [ -x "/usr/bin/deb-systemd-helper" ]; then
17 deb-systemd-helper purge dnsmasq.service >/dev/null
18 deb-systemd-helper unmask dnsmasq.service >/dev/null
19 fi
20 fi
21 # End code copied from dh_systemd_enable ------------------
22