forked from tastytea/hashboot
Cosmetic changes
This commit is contained in:
parent
7f3fa8630d
commit
9cc5962b62
2
INSTALL
2
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
|
12
hashboot.sh
12
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user