From 8dd1cf054e311db8d427f677d3353339f328d353 Mon Sep 17 00:00:00 2001 From: patrick Date: Thu, 11 Jan 2018 22:07:23 +0000 Subject: [PATCH] Install the intel firmware package which contains microcode updates if we match Intel CPUs in dmesg(8). "do it do it" deraadt@ --- usr.sbin/pkg_add/OpenBSD/FwUpdate.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 { -- 2.20.1