Last active
April 4, 2023 19:54
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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