File: /var/lib/dpkg/info/nvme-cli.postrm
#!/bin/sh
set -e
case "${1}" in
purge)
rm -f /etc/nvme/hostnqn
rm -f /etc/nvme/hostid
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`${1}'" >&2
exit 1
;;
esac
# Automatically added by dh_installsystemd/13.6ubuntu1
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.6ubuntu1
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask 'nvmefc-boot-connections.service' 'nvmf-autoconnect.service' >/dev/null || true
fi
fi
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge 'nvmefc-boot-connections.service' 'nvmf-autoconnect.service' >/dev/null || true
deb-systemd-helper unmask 'nvmefc-boot-connections.service' 'nvmf-autoconnect.service' >/dev/null || true
fi
fi
# End automatically added section
exit 0