1
0
Fork 0
cryptsetup/debian/cryptsetup.postrm
Daniel Baumann 74b680e410
Adding debian version 2:2.7.5-2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 10:45:48 +02:00

26 lines
606 B
Bash

#! /bin/sh
set -e
case "$1" in
remove)
for file in cryptdisks_start cryptdisks_stop; do
if [ -L /usr/sbin/$file ]; then
rm /usr/sbin/$file
fi
done
;;
esac
#DEBHELPER#
# try to remove /etc/init if it exists, it's empty and isn't owned
# NOTE: this needs to placed *after* the dh_installdeb-replaced snippet
# which contains calls to `dpkg-maintscript-helper rm_conffile`
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
if [ -d /etc/init ] && ! { dpkg-query -S /etc/init >/dev/null 2>&1 || [ $? -ne 1 ]; } then
rmdir --ignore-fail-on-non-empty /etc/init
fi
fi
exit 0