#!/bin/sh set -e case "$1" in purge) if [ -x /usr/bin/ucf ] then ucf --purge /var/yp/Makefile ucf --purge /etc/netgroup ucf --purge /etc/ypserv.conf ucf --purge /etc/ypserv.securenets fi rm -f /var/yp/Makefile \ /etc/netgroup \ /etc/ypserv.conf \ /etc/ypserv.securenets rm -f /var/yp/ypservers [ -f /etc/defaultdomain ] && rm -rf /var/yp/$(cat /etc/defaultdomain) ;; *) ;; esac # Automatically added by dh_installinit/13.3.1 if [ "$1" = "purge" ] ; then update-rc.d ypxfrd remove >/dev/null fi # End automatically added section # Automatically added by dh_installinit/13.3.1 if [ "$1" = "purge" ] ; then update-rc.d yppasswdd remove >/dev/null fi # End automatically added section # Automatically added by dh_installinit/13.3.1 if [ "$1" = "purge" ] ; then update-rc.d ypserv remove >/dev/null fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'ypxfr_2perday.timer' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'ypxfr_2perday.timer' >/dev/null || true deb-systemd-helper unmask 'ypxfr_2perday.timer' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'ypxfr_1perhour.timer' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'ypxfr_1perhour.timer' >/dev/null || true deb-systemd-helper unmask 'ypxfr_1perhour.timer' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'ypxfr_1perday.timer' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'ypxfr_1perday.timer' >/dev/null || true deb-systemd-helper unmask 'ypxfr_1perday.timer' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'ypxfrd.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'ypxfrd.service' >/dev/null || true deb-systemd-helper unmask 'ypxfrd.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'yppasswdd.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'yppasswdd.service' >/dev/null || true deb-systemd-helper unmask 'yppasswdd.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.3.1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'ypserv.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'ypserv.service' >/dev/null || true deb-systemd-helper unmask 'ypserv.service' >/dev/null || true fi fi # End automatically added section