Simon Kelley | c72daea | 2012-01-05 21:33:27 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | if [ purge = "$1" ]; then |
| 5 | update-rc.d dnsmasq remove >/dev/null |
Simon Kelley | c72daea | 2012-01-05 21:33:27 +0000 | [diff] [blame] | 6 | fi |
Andreas Metzler | 62f992f | 2014-05-11 17:53:54 +0100 | [diff] [blame] | 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 | |