diff options
Diffstat (limited to 'util/chromeos/crosfirmware.sh')
-rwxr-xr-x | util/chromeos/crosfirmware.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/chromeos/crosfirmware.sh b/util/chromeos/crosfirmware.sh index e72ff7d395..ee873290a5 100755 --- a/util/chromeos/crosfirmware.sh +++ b/util/chromeos/crosfirmware.sh @@ -107,6 +107,9 @@ extract_coreboot() { fi _bios_image=$(grep "IMAGE_MAIN" $_unpacked/models/$_board/setvars.sh | cut -f2 -d\") + elif [ -f "$_unpacked/manifest.json" ]; then + _version=$(grep -m1 -A1 "$BOARD" "$_unpacked/manifest.json" | grep "host" | cut -f12 -d'"') + _bios_image=$(grep -m1 -A3 "$BOARD" "$_unpacked/manifest.json" | grep "image" | cut -f4 -d'"') else _version=$(cat $_unpacked/VERSION | grep BIOS\ version: | cut -f2 -d: | tr -d \ ) |