Small fix
This commit is contained in:
parent
f53f7263c5
commit
085c3a2882
6
hashboot
6
hashboot
|
@ -67,7 +67,7 @@ write_hashes ()
|
|||
fi
|
||||
if [ $((${CKMODES} & 100)) -ne 0 ]; then
|
||||
#read bios to file
|
||||
flashrom --programmer $PROGRAMMER -r ${BIOS_TMP} > /dev/null 2>&1
|
||||
flashrom --programmer ${PROGRAMMER} -r ${BIOS_TMP} > /dev/null 2>&1
|
||||
#and write hashes of bios files to ${1}
|
||||
${HASHER} ${BIOS_TMP} >> ${1}
|
||||
|
||||
|
@ -149,7 +149,7 @@ else
|
|||
echo "You need to have flashrom installed!"
|
||||
echo "Currently it is not installed, don't reboot"
|
||||
echo "If you need another programmer than internal"
|
||||
echo "use the variable \$PROGRAMMER in $CONFIG_FILE\!"
|
||||
echo "use the variable PROGRAMMER in $CONFIG_FILE\!"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -249,7 +249,7 @@ then
|
|||
fi
|
||||
fi
|
||||
if [ $((${CKMODES} & 100)) -ne 0 ]; then
|
||||
flashrom --programmer $PROGRAMMER -r ${BIOS_TMP} > /dev/null 2>&1
|
||||
flashrom --programmer ${PROGRAMMER} -r ${BIOS_TMP} > /dev/null 2>&1
|
||||
#if we set an programmer chip in config, find line with hash for bios and compare. if smthg wrong, panic
|
||||
grep ${BIOS_TMP} ${DIGEST_FILE} | ${HASHER} --check --warn --quiet --strict | tee -a ${LOG_FILE}
|
||||
if [ ${PIPESTATUS[2]} -ne 0 ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user