Skip to content

Commit 6d47ed9

Browse files
committed
firmware: re-set the SW WP region/range after restoring stock firmware
Signed-off-by: Matt DeVillier <[email protected]>
1 parent cff4ab4 commit 6d47ed9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

firmware.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,9 @@ at this time. Please select another option from the menu.\n";
536536

537537
#re-enable software WP to prevent recovery issues
538538
echo_yellow "Re-enabling software write-protect"
539+
if ! ${flashromcmd} --wp-region WP_RO > /dev/null 2>&1; then
540+
echo_red "Error setting software write-protect region; you may need to perform ChromeOS recovery with the battery disconnected."
541+
fi
539542
if ! ${flashromcmd} --wp-enable > /dev/null 2>&1; then
540543
echo_red "Error re-enabling software write-protect; you may need to perform ChromeOS recovery with the battery disconnected."
541544
fi

0 commit comments

Comments
 (0)