From 8d980aa4abdbe7ce1134b641e9f6a4cc54b9f311 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 4 Oct 2015 20:11:15 +0200 Subject: [PATCH] =?UTF-8?q?m=C3=B6=C3=B6p!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hashboot | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/hashboot b/hashboot index a2bd3d7..4952490 100755 --- a/hashboot +++ b/hashboot @@ -124,19 +124,19 @@ then then die 0 else - # #Compare actual hashes of MBR against saved hashes. - # if [ "$(grep ${MBR_TMP} ${DIGEST_FILE})" != "$(grep ${MBR_TMP} ${DIGEST_FILE_TMP})" ] - # then - # echo "at least mbr must be written." - # fi - # #Compare actual hashes of /boot against saved hashes. - # if [ "$(grep -v ${MBR_TMP} ${DIGEST_FILE})" != "$(grep -v ${MBR_TMP} ${DIGEST_FILE_TMP})" ] - # then - # echo "anything here, must be rewritten." - # #if interactive ask if rewrite einzeln? - # echo "find out which one?" - # #read z und so weiter.. - # fi + #Compare actual hashes of MBR against saved hashes. + if [ "$(grep ${MBR_TMP} ${DIGEST_FILE})" != "$(grep ${MBR_TMP} ${DIGEST_FILE_TMP})" ] + then + echo "at least mbr must be written." + fi + #Compare actual hashes of /boot against saved hashes. + if [ "$(grep -v ${MBR_TMP} ${DIGEST_FILE})" != "$(grep -v ${MBR_TMP} ${DIGEST_FILE_TMP})" ] + then + echo "anything here, must be rewritten." + #if interactive ask if rewrite einzeln? + echo "find out which one?" + #read z und so weiter.. + fi mv ${DIGEST_FILE_TMP} ${DIGEST_FILE} || die 7 echo "List of hashes written to ${DIGEST_FILE}" fi