#!/bin/sh set -e # Automatically added by dh_installsystemd/13.14.1 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'dnsmasq.service' >/dev/null || true fi # End automatically added section # Automatically added by dh_installinit/13.14.1 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -x "/etc/init.d/dnsmasq" ] ; then invoke-rc.d --skip-systemd-native dnsmasq stop || exit 1 fi # End automatically added section # Automatically added by dh_installdeb/13.14.1 dpkg-maintscript-helper symlink_to_dir /usr/share/doc/dnsmasq dnsmasq-base 2.84-1.2\~ dnsmasq -- "$@" # End automatically added section # Automatically added by dh_runit/2.16.2 # Unlike postrm, I can be sure, that runit-helper is present on # prerm. if [ -z "${DPKG_ROOT:-}" ] ; then NAME='dnsmasq' ENABLE='yes' ONUPGRADE='restart' /lib/runit-helper/runit-helper prerm "$@" fi # End automatically added section