#! /bin/sh -e # Automatically added by dh_installinit/13.15.3 if [ "$1" = "remove" ] && [ -x "/etc/init.d/hylafax" ] ; then chmod -x "/etc/init.d/hylafax" >/dev/null || true fi if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then update-rc.d hylafax remove >/dev/null fi # End automatically added section # Automatically added by dh_installsystemd/13.15.3 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.15.3 if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'faxq.service' 'hfaxd.service' 'hylafax.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installsystemd/13.15.3 if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'hylafax.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installsystemd/13.15.3 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.15.3 if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'faxq.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installsystemd/13.15.3 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.15.3 if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'hfaxd.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installdebconf/13.15.3 if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_purge fi # End automatically added section USERDEL=/usr/sbin/userdel if [ "$1" = purge ]; then if getent passwd faxmaster >/dev/null 2>&1 then [ -x $USERDEL ] && $USERDEL faxmaster fi for i in /etc/hylafax/setup.cache /etc/hylafax/setup.modem \ /var/spool/hylafax/status/any.info /var/spool/hylafax/dev/null \ /var/spool/hylafax/FIFO /var/spool/hylafax/bin/ps2fax \ /var/spool/hylafax/bin/pdf2fax /var/spool/hylafax/bin/bin \ /etc/default/hylafax do [ -e "$i" -o -L "$i" ] && rm "$i" done fi exit 0