#!/bin/sh -e # Automatically added by dh_installsystemd/13.14.1 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'binkd.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/binkd" ] ; then invoke-rc.d --skip-systemd-native binkd stop || exit 1 fi # End automatically added section # must be executed after /etc/init.d/binkd stop if [ -x /usr/sbin/update-inetd ]; then update-inetd --remove '^binkp[ \t]' fi