From: kettenis Date: Mon, 26 Sep 2022 00:20:14 +0000 (+0000) Subject: Hide error messages while extracting Apple firmware. Depending on the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8754e9d031364d174e9023a83feb8175663fb896;p=openbsd Hide error messages while extracting Apple firmware. Depending on the model there might be no firmware and we want to avoid confusing users with WARNING messages about patterns that were not matched. ok deraadt@ --- diff --git a/distrib/arm64/ramdisk/install.md b/distrib/arm64/ramdisk/install.md index 8dc5ad9d73c..8362fe935b1 100644 --- a/distrib/arm64/ramdisk/install.md +++ b/distrib/arm64/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.34 2022/09/03 21:16:05 kn Exp $ +# $OpenBSD: install.md,v 1.35 2022/09/26 00:20:14 kettenis Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -222,10 +222,10 @@ md_consoleinfo() { rm -rf /etc/firmware/brcm /etc/firmware/apple-bwfm if [[ -s /mnt2/vendorfw/firmware.tar ]]; then tar -x -C /etc/firmware \ - -f /mnt2/vendorfw/firmware.tar "*$_fw*" + -f /mnt2/vendorfw/firmware.tar "*$_fw*" 2>/dev/null tar -x -C /etc/firmware \ - -f /mnt2/vendorfw/firmware.tar "*$_fw2*" - mv /etc/firmware/brcm /etc/firmware/apple-bwfm + -f /mnt2/vendorfw/firmware.tar "*$_fw2*" 2>/dev/null + mv /etc/firmware/brcm /etc/firmware/apple-bwfm 2>/dev/null fi umount /mnt2 fi