Cosmetic changes

pull/1/head
tastytea 2015-09-29 16:03:52 +02:00
parent 7f3fa8630d
commit 9cc5962b62
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
* Make sure you have sha*sum or md5sum installed * Make sure you have sha*sum or md5sum installed
* Make hashboot.sh executable * Make hashboot.sh executable
* Place hashboot.sh where it's needed * Place hashboot.sh anywhere in $PATH
* Install the appropriate init script * Install the appropriate init script

View File

@ -93,23 +93,23 @@ then
fi fi
elif [ "${1}" == "check" ] elif [ "${1}" == "check" ]
then then
COUNTER=0 COUNTER=0
err=$(dd if=/dev/sda of=${MBR_TMP} bs=2M count=1 status=noxfer 2>&1) || die 8 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}) if $(${HASHER} --check --warn --quiet --strict ${MBR_FILE} > ${LOG_FILE})
then then
echo "MBR ok" echo "MBR ok"
else else
echo " !! TIME TO PANIK: MBR WAS MODIFIED !!" echo " !! TIME TO PANIK: MBR WAS MODIFIED !!"
COUNTER=$((COUNTER + 1)) COUNTER=$((COUNTER + 1))
fi fi
if $(${HASHER} --check --warn --quiet --strict ${DIGEST_FILE} >> ${LOG_FILE}) if $(${HASHER} --check --warn --quiet --strict ${DIGEST_FILE} >> ${LOG_FILE})
then then
echo "/boot ok" echo "/boot ok"
die 0 die 0
else else
echo " !! TIME TO PANIK: AT LEAST 1 FILE WAS MODIFIED !!" echo " !! TIME TO PANIK: AT LEAST 1 FILE WAS MODIFIED !!"
COUNTER=$((COUNTER + 2)) COUNTER=$((COUNTER + 2))
die $COUNTER die $COUNTER
fi fi
elif [ "${1}" == "recover" ] elif [ "${1}" == "recover" ]
then then