mirror of https://schlomp.space/tastytea/hashboot
minor mistake corrected..
parent
44cc8b36e9
commit
3f375ef746
7
hashboot
7
hashboot
|
@ -135,15 +135,14 @@ then
|
||||||
#Compare actual hashes of MBR against saved hashes.
|
#Compare actual hashes of MBR against saved hashes.
|
||||||
if [ "$(grep ${MBR_TMP} ${DIGEST_FILE})" != "$(grep ${MBR_TMP} ${DIGEST_FILE_TMP})" ]
|
if [ "$(grep ${MBR_TMP} ${DIGEST_FILE})" != "$(grep ${MBR_TMP} ${DIGEST_FILE_TMP})" ]
|
||||||
then
|
then
|
||||||
[ -t "0" ] && echo "at least mbr must be written."
|
[ -t "0" ] && echo "mbr was faulty."
|
||||||
|
#future write separatly from files
|
||||||
fi
|
fi
|
||||||
#Compare actual hashes of /boot against saved hashes.
|
#Compare actual hashes of /boot against saved hashes.
|
||||||
if [ "$(grep -v ${MBR_TMP} ${DIGEST_FILE})" != "$(grep -v ${MBR_TMP} ${DIGEST_FILE_TMP})" ]
|
if [ "$(grep -v ${MBR_TMP} ${DIGEST_FILE})" != "$(grep -v ${MBR_TMP} ${DIGEST_FILE_TMP})" ]
|
||||||
then
|
then
|
||||||
[ -t "0" ] && echo "mbr was faulty."
|
|
||||||
#if interactive ask if rewrite einzeln?
|
|
||||||
[ -t "0" ] && echo "any file was faulty."
|
[ -t "0" ] && echo "any file was faulty."
|
||||||
#read z und so weiter..
|
#future: write per file and separatly from mbr
|
||||||
fi
|
fi
|
||||||
mv ${DIGEST_FILE_TMP} ${DIGEST_FILE} || die 7
|
mv ${DIGEST_FILE_TMP} ${DIGEST_FILE} || die 7
|
||||||
echo "List of hashes written to ${DIGEST_FILE}"
|
echo "List of hashes written to ${DIGEST_FILE}"
|
||||||
|
|
Loading…
Reference in New Issue