Debian Codegraph @

debian/diff-latest-pack.sh

raw symbols SCIP
1 #!/bin/sh
2 #
3 # Generate an unified diff of the list of microcodes included in the
4 # latest two Intel-supplied Microcode packs (microcode-<date>.dat)
5 #
6 # Use this to locate updated/removed/added microcodes. Further manual
7 # analysis is necessary to identify the deletion of recently-added
8 # or recently-updated microcode, and the addition of previously-deleted
9 # microcode (often with a version downgrade).
10 #
11 # Run this from the directory with the Intel microcode packs.
12
13 export LC_COLLATE=C
14 PATH=${PATH}:/sbin:/usr/sbin
15
16 FILES=$(ls -1 microcode-*.dat | tail -n 2 | xargs)
17
18 DFILES=
19 for i in $FILES ; do
20 fn=$(basename $i)
21 iucode_tool -q -l $i | sed -e 's/^[^:]\+: //' | sort | grep sig > /tmp/$fn.list
22 DFILES="${DFILES} /tmp/$fn.list"
23 done
24
25 diff --unified=1 ${DFILES} | grep sig | sort -k 2