diff options
author | Leah Rowe <leah@libreboot.org> | 2025-04-12 17:32:18 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-04-12 17:32:18 +0100 |
commit | 49939502648163f26464a4e2d706f3aa75e27947 (patch) | |
tree | 9d2f7609562d8df766e7dcc1f71627bad84337d9 | |
parent | c158d82298bb04ffc73eb38868fea3c8a28059bf (diff) |
mrc.sh: minor cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | include/mrc.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/mrc.sh b/include/mrc.sh index e08a0f0e..a5f1b37c 100644 --- a/include/mrc.sh +++ b/include/mrc.sh @@ -50,12 +50,10 @@ extract_refcode() chkvars cbfstoolref mkdir -p "${_refdest%/*}" || $err "ref: !mkdir -p ${_refdest%/*}" - "$cbfstoolref" "$appdir/bios.bin" extract \ - -m x86 -n fallback/refcode -f "$_refdest" -r RO_SECTION \ - || $err "extract_refcode $board: !cbfstoolref $_refdest" + x_ "$cbfstoolref" "$appdir/bios.bin" extract \ + -m x86 -n fallback/refcode -f "$_refdest" -r RO_SECTION # enable the Intel GbE device, if told by offset MRC_refcode_gbe - [ -z "$MRC_refcode_gbe" ] || dd if="config/ifd/hp820g2/1.bin" \ - of="$_refdest" bs=1 seek=$MRC_refcode_gbe count=1 conv=notrunc || \ - $err "extract_refcode $_refdest: byte $MRC_refcode_gbe"; : + [ -z "$MRC_refcode_gbe" ] || x_ dd if="config/ifd/hp820g2/1.bin" \ + of="$_refdest" bs=1 seek=$MRC_refcode_gbe count=1 conv=notrunc; : } |