From 629f57f61b9fd7aab321f942a31a78330f1c8281 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 4 Oct 2015 19:17:03 +0200 Subject: [PATCH] tidying up a bit :-) --- hashboot | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/hashboot b/hashboot index 6d38fc8..e4dbb66 100755 --- a/hashboot +++ b/hashboot @@ -121,22 +121,21 @@ then #Compare $DIGEST_FILE_TMP against ${DIGEST_FILE} and exit, when fine. Otherwise do magic. if diff -q --ignore-matching-lines='^#' ${DIGEST_FILE} ${DIGEST_FILE_TMP} ; then - echo "alles fine und die exit definieren" 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