mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-27 03:33:50 +00:00
set_gbb_flags: add '-p host' to flashrom command
BRANCH=none BUG=chrome-os-partner:60894 TEST=set_gbb_flags 0 Change-Id: I22f372590bfe7705d4312588f971ad37f229a216 Reviewed-on: https://chromium-review.googlesource.com/418519 Commit-Ready: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
@@ -60,7 +60,8 @@ check_write_protection() {
|
||||
if ! crossystem "wpsw_boot?0"; then
|
||||
hw_wp="on"
|
||||
fi
|
||||
local wp_states="$(flashrom --wp-status 2>/dev/null | grep WP)"
|
||||
local wp_states="$(flashrom $FLASHROM_COMMON_OPT --wp-status 2>/dev/null \
|
||||
| grep WP)"
|
||||
local wp_disabled="$(echo "$wp_states" | grep "WP:.*is disabled.")"
|
||||
local wp_zero_len="$(echo "$wp_states" | grep "WP:.*, len=0x00000000")"
|
||||
if [ -z "$wp_disabled" -a -z "$wp_zero_len" ]; then
|
||||
|
||||
Reference in New Issue
Block a user