1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/microcode_ctl/microcode.init
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # Desc: Upload microcode-updates on Intel (no AMD) CPUs
13 # Runlevel: 02 rcX rc1 rc2 rc3 rc4 rc5
16 grep -q GenuineIntel /proc/cpuinfo || exit 0
17 [ "$1" = stop ] && exit 0
21 block_begin(start, `Uploading CPU microcode update')
22 modprobe -q microcode 2> /dev/null
23 check(`microcode_ctl -q -u')