#! /bin/sh set -e #DEBHELPER# # Stop services conditionally rather than relying on debhelper, in order to # handle udev activation under systemd. case $1 in remove) if [ -d /run/systemd/system ]; then deb-systemd-invoke stop \ iprinit.service iprdump.service iprupdate.service \ >/dev/null || true else for script in iprinit iprdump iprupdate; do if [ -x "/etc/init.d/$script" ]; then invoke-rc.d "$script" stop || exit 1 fi done fi ;; esac exit 0