svn commit: r452203 - in head/sysutils/devcpu-data: . files
Thomas Zander
riggs at FreeBSD.org
Mon Oct 16 16:37:58 UTC 2017
Author: riggs
Date: Mon Oct 16 16:37:56 2017
New Revision: 452203
URL: https://svnweb.freebsd.org/changeset/ports/452203
Log:
Allow custom cpucontrol(8) flags
PR: 222697
Submitted by: kib
Approved by: maintainer timeout
Modified:
head/sysutils/devcpu-data/Makefile
head/sysutils/devcpu-data/files/microcode_update.in
Modified: head/sysutils/devcpu-data/Makefile
==============================================================================
--- head/sysutils/devcpu-data/Makefile Mon Oct 16 16:37:24 2017 (r452202)
+++ head/sysutils/devcpu-data/Makefile Mon Oct 16 16:37:56 2017 (r452203)
@@ -3,6 +3,7 @@
PORTNAME= data
PORTVERSION= 1.11
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://downloadmirror.intel.com/26925/eng/:intel \
http://www.amd64.org/microcode/:amd
Modified: head/sysutils/devcpu-data/files/microcode_update.in
==============================================================================
--- head/sysutils/devcpu-data/files/microcode_update.in Mon Oct 16 16:37:24 2017 (r452202)
+++ head/sysutils/devcpu-data/files/microcode_update.in Mon Oct 16 16:37:56 2017 (r452203)
@@ -16,6 +16,7 @@
# microcode_update_cpus (str): A list of cpus to update on startup, or "ALL" for all.
# Example: microcode_update_cpus_cpus="0 CPU0"
# Set to "ALL" by default.
+# microcode_update_flags (str): Flags for cpucontrol(8).
. /etc/rc.subr
@@ -48,7 +49,8 @@ microcode_update_start()
cpus=${microcode_cpus}
fi
for i in ${cpus}; do
- ${CMT} -u -d "${microcode_update_datadir}" /dev/cpuctl${i} || \
+ ${CMT} -u ${microcode_update_flags} \
+ -d "${microcode_update_datadir}" /dev/cpuctl${i} || \
(echo "Failed." && exit 1)
done
echo "Done."
@@ -60,5 +62,6 @@ load_rc_config $name
: ${microcode_update_enable="NO"}
: ${microcode_update_datadir="%%DATADIR%%"}
: ${microcode_cpus="ALL"}
+: ${microcode_update_flags=""}
run_rc_command "$1"
More information about the svn-ports-head
mailing list