aboutsummaryrefslogtreecommitdiff
path: root/debian/postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postrm')
-rw-r--r--debian/postrm37
1 files changed, 0 insertions, 37 deletions
diff --git a/debian/postrm b/debian/postrm
deleted file mode 100644
index 6de4a05..0000000
--- a/debian/postrm
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-# postrm script for naskpass
-#
-# see: dh_installdeb(1)
-
-set -e
-
-
-export ORGFILE="/usr/share/initramfs-tools/scripts/local-top/cryptroot"
-export BCKFILE="/var/backup/cryptroot.naskpass"
-
-case "$1" in
- purge)
- rm -f ${BCKFILE}
- ;;
- remove)
- dpkg-divert --package naskpass --remove --rename ${ORGFILE} || true
- update-initramfs -u
- ;;
- upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
- if [ -d /usr/share/naskpass ]; then
- rmdir --ignore-fail-on-non-empty /usr/share/naskpass
- fi
- ;;
-
- *)
- echo "postrm called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0