blob: 8a45fd1322030bfd0070943c43ca37436669a28c [file] [log] [blame]
Simon Kelleyc72daea2012-01-05 21:33:27 +00001#!/bin/sh
2set -e
3
4if [ purge = "$1" ]; then
5 update-rc.d dnsmasq remove >/dev/null
Simon Kelleyc72daea2012-01-05 21:33:27 +00006fi
Andreas Metzler62f992f2014-05-11 17:53:54 +01007
8# Code copied from dh_systemd_enable ----------------------
9if [ "$1" = "remove" ]; then
10 if [ -x "/usr/bin/deb-systemd-helper" ]; then
11 deb-systemd-helper mask dnsmasq.service >/dev/null
12 fi
13fi
14
15if [ "$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
20fi
21# End code copied from dh_systemd_enable ------------------
22