From: patrick Date: Thu, 11 Jan 2018 22:07:23 +0000 (+0000) Subject: Install the intel firmware package which contains microcode updates X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8dd1cf054e311db8d427f677d3353339f328d353;p=openbsd Install the intel firmware package which contains microcode updates if we match Intel CPUs in dmesg(8). "do it do it" deraadt@ --- diff --git a/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm b/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm index e4391c57f82..3a9753ea68f 100644 --- a/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm +++ b/usr.sbin/pkg_add/OpenBSD/FwUpdate.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: FwUpdate.pm,v 1.25 2018/01/11 22:04:39 patrick Exp $ +# $OpenBSD: FwUpdate.pm,v 1.26 2018/01/11 22:07:23 patrick Exp $ # # Copyright (c) 2014 Marc Espie # @@ -147,10 +147,11 @@ OpenBSD::Auto::cache(updater, }); my %possible_drivers = map {($_, "$_-firmware")} - (qw(acx athn bwfm bwi ipw iwi iwm iwn malo otus pgt radeondrm rsu rtwn uath - upgt urtwn uvideo vmm wpi)); + (qw(acx athn bwfm bwi intel ipw iwi iwm iwn malo otus pgt radeondrm rsu rtwn + uath upgt urtwn uvideo vmm wpi)); my %match = map {($_, qr{^\Q$_\E\d+\s+at\s/})} (keys %possible_drivers); +$match{'intel'} = qr{^cpu\d+: Intel}; sub parse_dmesg {