Skip to content

Instantly share code, notes, and snippets.

@ThinGuy
Created June 30, 2022 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThinGuy/08293aef5c59b355c33b875b3158b26e to your computer and use it in GitHub Desktop.
Save ThinGuy/08293aef5c59b355c33b875b3158b26e to your computer and use it in GitHub Desktop.
Check for AMT on NUC or other AMT-enabled PC
amt-check() {
local G=https://github.com/mjg59/mei-amt-check.git
if [[ ! -f /srv/$(basename ${G%.*})/mei-amt-check ]];then
sudo chown -R $(id -un 1000):$(id -gn 1000) /srv
git clone ${G} /srv/$(basename ${G%.*})
cd /srv/$(basename ${G%.*})
make
fi
[[ -x /srv/$(basename ${G%.*})/mei-amt-check ]] && { sudo /srv/$(basename ${G%.*})/mei-amt-check; }
};export -f amt-check
@ThinGuy
Copy link
Author

ThinGuy commented Jun 30, 2022

$ amt-check
Cloning into '/srv/mei-amt-check'...
remote: Enumerating objects: 45, done.
remote: Total 45 (delta 0), reused 0 (delta 0), pack-reused 45
Unpacking objects: 100% (45/45), 18.00 KiB | 292.00 KiB/s, done.
gcc     mei-amt-check.c   -o mei-amt-check
AMT present: true
AMT provisioning state: provisioned
Flash:	10.0.56
Netstack:	10.0.56
AMTApps:	10.0.56
AMT:	10.0.56
Sku:	8
VendorID:	8086
Build Number:	3002
Recovery Version:	10.0.56
Recovery Build Num:	3002
Legacy Mode:	False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment