diff options
author | toni <toni@devlap.local> | 2014-12-25 03:19:33 +0100 |
---|---|---|
committer | toni <toni@devlap.local> | 2014-12-25 03:19:33 +0100 |
commit | 69b91a3ebe3e7c90497645470bd92dbfa025568f (patch) | |
tree | 17760c4d2a3d2c722f0a027b2b3ef464582b5b8d /debian/preinst | |
parent | 6020a1e4f9dd35a8077ccd0c8170c7d33e661035 (diff) |
debian maintainer scripts/configs renewed
Diffstat (limited to 'debian/preinst')
-rw-r--r-- | debian/preinst | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/debian/preinst b/debian/preinst deleted file mode 100644 index f50aa9f..0000000 --- a/debian/preinst +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh -# postinst script for naskpass -# -# see: dh_installdeb(1) - -set -e - - -export RDSUM="5924c70e5c9fabf0398050349c3f4f283ab80091b23ea8c677249ee7bdd41f6e4910ce5e1bc32577e67763dc30d9b96cc3528256e1cc63dba959a5e3866ec21f" -export ORGFILE="/usr/share/initramfs-tools/scripts/local-top/cryptroot" -export DIVFILE="/usr/share/naskpass/cryptroot.orig" -export BCKFILE="/var/backups/cryptroot.naskpass" - -case "$1" in - upgrade) - if [ -f ${BCKFILE} ]; then - mv ${BCKFILE} ${ORGFILE} || true - fi - ;; - install) - mkdir -p /usr/share/naskpass - if [ ! -f ${ORGFILE} ]; then - whiptail --title "Missing file" --msgbox "/usr/share/initramfs-tools/scripts/local-top/cryptroot is missing!\nabort .." 9 70 - else - if [ ${RDSUM} = "$(sha512sum ${ORGFILE} | grep -Eo '^[0-9a-zA-Z]*')" ]; then - dpkg-divert --package naskpass --divert ${DIVFILE} --rename --add ${ORGFILE} - update-initramfs -u - fi - fi - ;; - - abort-upgrade) - ;; - - *) - echo "postinst 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 |