diff options
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/postinst b/debian/postinst index e3cf5b0..6416e3e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -16,7 +16,7 @@ case "$1" in 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} = "$(/usr/bin/sha512sum ${ORGFILE} | grep -Eo '^[0-9a-zA-Z]*')" ]; then + if [ ${RDSUM} = "$(sha512sum ${ORGFILE} | grep -Eo '^[0-9a-zA-Z]*')" ]; then dpkg-divert --package naskpass --divert ${DIVFILE} --rename --add ${ORGFILE} else whiptail --title "Wrong SHA checksum" --msgbox "in /usr/share/initramfs-tools/scripts/local-top/cryptroot\n\nabort .." 9 70 |