From 9cc5962b629d7213369f31e0628f4edf1897261d Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 29 Sep 2015 16:03:52 +0200 Subject: [PATCH] Cosmetic changes --- INSTALL | 2 +- hashboot.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/INSTALL b/INSTALL index 46a0511..b539ab1 100644 --- a/INSTALL +++ b/INSTALL @@ -1,4 +1,4 @@ * Make sure you have sha*sum or md5sum installed * Make hashboot.sh executable -* Place hashboot.sh where it's needed +* Place hashboot.sh anywhere in $PATH * Install the appropriate init script \ No newline at end of file diff --git a/hashboot.sh b/hashboot.sh index 2ea7925..7a0ab44 100755 --- a/hashboot.sh +++ b/hashboot.sh @@ -93,23 +93,23 @@ then fi elif [ "${1}" == "check" ] then - COUNTER=0 - err=$(dd if=/dev/sda of=${MBR_TMP} bs=2M count=1 status=noxfer 2>&1) || die 8 + COUNTER=0 + err=$(dd if=/dev/sda of=${MBR_TMP} bs=2M count=1 status=noxfer 2>&1) || die 8 if $(${HASHER} --check --warn --quiet --strict ${MBR_FILE} > ${LOG_FILE}) then echo "MBR ok" else echo " !! TIME TO PANIK: MBR WAS MODIFIED !!" - COUNTER=$((COUNTER + 1)) + COUNTER=$((COUNTER + 1)) fi if $(${HASHER} --check --warn --quiet --strict ${DIGEST_FILE} >> ${LOG_FILE}) then echo "/boot ok" - die 0 + die 0 else echo " !! TIME TO PANIK: AT LEAST 1 FILE WAS MODIFIED !!" - COUNTER=$((COUNTER + 2)) - die $COUNTER + COUNTER=$((COUNTER + 2)) + die $COUNTER fi elif [ "${1}" == "recover" ] then