packages: intel-microcode: add initscript to force ucode upload x86ucode
authorZoltan HERPAI <wigyori@uid0.hu>
Thu, 11 Jan 2018 20:06:16 +0000 (21:06 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Thu, 11 Jan 2018 20:06:16 +0000 (21:06 +0100)
Add initscript to run iucode_tool to force uploading the microcode
at boot() time.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
package/firmware/intel-microcode/files/intel-microcode.init [new file with mode: 0644]

diff --git a/package/firmware/intel-microcode/files/intel-microcode.init b/package/firmware/intel-microcode/files/intel-microcode.init
new file mode 100644 (file)
index 0000000..c06d4b9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh /etc/rc.common
+# (C) 2018 Zoltan HERPAI
+
+START=10
+IUCODE_BIN="/usr/bin/iucode_tool"
+
+boot() {
+       $IUCODE_BIN -S -K -v
+}