1
1
mirror of https://schlomp.space/tastytea/hashboot synced 2024-11-16 14:37:06 +01:00

Cosmetic changes

This commit is contained in:
tastytea 2015-09-29 16:03:52 +02:00
parent 7f3fa8630d
commit 9cc5962b62
2 changed files with 7 additions and 7 deletions

@ -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

@ -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