From 3f375ef7466cb934e40b22137a68bc8e9e2572bc Mon Sep 17 00:00:00 2001 From: xor Date: Sun, 4 Oct 2015 21:39:51 +0200 Subject: [PATCH] minor mistake corrected.. --- hashboot | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hashboot b/hashboot index 355aa61..23b8e96 100755 --- a/hashboot +++ b/hashboot @@ -135,15 +135,14 @@ then #Compare actual hashes of MBR against saved hashes. if [ "$(grep ${MBR_TMP} ${DIGEST_FILE})" != "$(grep ${MBR_TMP} ${DIGEST_FILE_TMP})" ] then - [ -t "0" ] && echo "at least mbr must be written." + [ -t "0" ] && echo "mbr was faulty." + #future write separatly from files fi #Compare actual hashes of /boot against saved hashes. if [ "$(grep -v ${MBR_TMP} ${DIGEST_FILE})" != "$(grep -v ${MBR_TMP} ${DIGEST_FILE_TMP})" ] then - [ -t "0" ] && echo "mbr was faulty." - #if interactive ask if rewrite einzeln? [ -t "0" ] && echo "any file was faulty." - #read z und so weiter.. + #future: write per file and separatly from mbr fi mv ${DIGEST_FILE_TMP} ${DIGEST_FILE} || die 7 echo "List of hashes written to ${DIGEST_FILE}"