aboutsummaryrefslogtreecommitdiff
path: root/sysutils/devcpu-data/files
diff options
context:
space:
mode:
authorThomas Zander <riggs@FreeBSD.org>2017-10-16 16:37:56 +0000
committerThomas Zander <riggs@FreeBSD.org>2017-10-16 16:37:56 +0000
commit8bc944ed45ead48e85c2226231a562f5e515bcb8 (patch)
tree9c2d807e66c4a06bdd11813c2051bde9e91912b6 /sysutils/devcpu-data/files
parent3ce71d798ce4d3aef7e37de88c9421e1635872aa (diff)
downloadports-8bc944ed45ead48e85c2226231a562f5e515bcb8.tar.gz
ports-8bc944ed45ead48e85c2226231a562f5e515bcb8.zip
Notes
Diffstat (limited to 'sysutils/devcpu-data/files')
-rw-r--r--sysutils/devcpu-data/files/microcode_update.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysutils/devcpu-data/files/microcode_update.in b/sysutils/devcpu-data/files/microcode_update.in
index d7d3c910ef08..9670bc906b39 100644
--- a/sysutils/devcpu-data/files/microcode_update.in
+++ b/sysutils/devcpu-data/files/microcode_update.in
@@ -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"