mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-15 17:58:46 +02:00
+3
-2
@@ -570,7 +570,8 @@ patch_rom()
|
|||||||
# if a hash file is missing, we only want to allow nuke.
|
# if a hash file is missing, we only want to allow nuke.
|
||||||
# this logical rule prevents double-nuke and double-inject
|
# this logical rule prevents double-nuke and double-inject
|
||||||
|
|
||||||
# if injecting without a hash file
|
# if injecting without a hash file i.e. inject what was injected
|
||||||
|
# (or inject where no vendor files are needed, covered previously)
|
||||||
if [ "$has_hashes" != "y" ] && [ "$nukemode" != "nuke" ]; then
|
if [ "$has_hashes" != "y" ] && [ "$nukemode" != "nuke" ]; then
|
||||||
printf "inject: '%s' has no hash file. Skipping.\n" \
|
printf "inject: '%s' has no hash file. Skipping.\n" \
|
||||||
"$archive" 1>&2
|
"$archive" 1>&2
|
||||||
@@ -578,7 +579,7 @@ patch_rom()
|
|||||||
fi
|
fi
|
||||||
# nuking *with* a hash file, i.e. nuking what was nuked before
|
# nuking *with* a hash file, i.e. nuking what was nuked before
|
||||||
if [ "$has_hashes" = "y" ] && [ "$nukemode" = "nuke" ]; then
|
if [ "$has_hashes" = "y" ] && [ "$nukemode" = "nuke" ]; then
|
||||||
printf "inject nuke: '%s' has a hash file. Skipping nuke." \
|
printf "inject nuke: '%s' has a hash file. Skipping nuke.\n" \
|
||||||
"$archive" 1>&2
|
"$archive" 1>&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user