diff options
author | toni <matzeton@googlemail.com> | 2014-04-21 13:27:25 +0200 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2014-04-21 13:27:25 +0200 |
commit | 8ba00007c1ddbce71dacd73afdc99e48069ce8e0 (patch) | |
tree | a11d73ce2bd2ed4c6a3d4a6cafa4c2f8c43104b6 /debian/postrm | |
parent | 52c91f4a166a4b5c4c7fdc5defc8f9100ad7cdd3 (diff) |
added activate/deactivate feature
Diffstat (limited to 'debian/postrm')
-rw-r--r-- | debian/postrm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/postrm b/debian/postrm index 12bde65..6de4a05 100644 --- a/debian/postrm +++ b/debian/postrm @@ -7,12 +7,14 @@ 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} + dpkg-divert --package naskpass --remove --rename ${ORGFILE} || true update-initramfs -u ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |