Skip to content

Instantly share code, notes, and snippets.

@Milvintsiss
Last active April 4, 2023 19:54
Show Gist options
  • Save Milvintsiss/fdbab51b9dfceffa317a05bbca7630e8 to your computer and use it in GitHub Desktop.
Save Milvintsiss/fdbab51b9dfceffa317a05bbca7630e8 to your computer and use it in GitHub Desktop.
Little script to enumerate all OpenCore Kexts name's and their versions in an EFI.
#/bin/bash
while [ ! -d "EFI" ]
do
cd ..
if [ $(pwd) == "/" ]; then
echo "You are not in an EFI directory"
exit
fi
done
cat EFI/OC/kexts/*/Contents/Info.plist | grep -A 1 "CFBundleName\|CFBundleShortVersionString" | awk 'FNR%3==2{print $0}' | sed 's/..string.//g' | awk 'NR%2{printf "%s: ",$0;next;}1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment