PMheart / LiluFriend

A helper of Lilu that ensures everything loaded properly
41 stars 2 forks source link

helper script fails #2

Closed tristan-k closed 6 years ago

tristan-k commented 6 years ago

I tried running your helper script on my kexts but it fails.

$ nano lilufriend_kext_checker.sh
echo "# Add the following to OSBundleLibraries of $( find /System/Library/Extensions /Library/Extensions \( -type f -name Info.plist -path '*/LiluFriend.kext/*' \) )"
IFS=$'\n'
for thefile in $( find /System/Library/Extensions /Library/Extensions \( -type f -name Info.plist -not -path '*/Lilu.kext/*' -not -path '*/LiluFriend.kext/*' -print0 \) | xargs -0 grep -l '<key>as.vit9696.Lilu</key>' ); do
    plutil -convert json -r "${thefile}" -o /tmp/converted.plist
    sed -n -E '/^  "CFBundleIdentifier" : "(.*)",?/s//      <key>\1<\/key>/p' /tmp/converted.plist
    version="$(sed -n -E '/^  \"OSBundleCompatibleVersion\" : "(.*)",?/s//\1/p' /tmp/converted.plist)"
    if [[ -z "${version}" ]]; then
        version=$(sed -n -E '/^  "CFBundleVersion" : "(.*)",?/s//\1/p' /tmp/converted.plist)
    fi
    echo "      <string>${version}</string>"
done
$ ls -la /Library/Extensions/
drwxr-xr-x  23 root  wheel   782 Jun 17 04:30 .
drwxr-xr-x+ 61 root  wheel  2074 Jun 17 02:50 ..
drwxr-xr-x   3 root  wheel   102 Jun 12  2014 ACS6x.kext
drwxr-xr-x   3 root  wheel   102 Jun 27  2016 ATTOCelerityFC8.kext
drwxr-xr-x   3 root  wheel   102 Jun 27  2016 ATTOExpressSASHBA2.kext
drwxr-xr-x   3 root  wheel   102 Jun 27  2016 ATTOExpressSASRAID2.kext
drwxr-xr-x   4 root  wheel   136 Jun 17 04:30 AppleALC.kext
drwxr-xr-x   3 root  wheel   102 Aug 20  2013 ArcMSR.kext
drwxr-xr-x   3 root  wheel   102 Jun 17 04:30 CPUFriend.kext
drwxr-xr-x   3 root  wheel   102 Aug 31  2013 CalDigitHDProDrv.kext
drwxr-xr-x   3 root  wheel   102 Jun 17 04:30 CodecCommander.kext
drwxr-xr-x   3 root  wheel   102 Jun 17 04:30 FakePCIID.kext
drwxr-xr-x   3 root  wheel   102 Jun 17 04:30 FakePCIID_Intel_HD_Graphics.kext
drwxr-xr-x   3 root  wheel   102 Jun 17 04:30 FakeSMC.kext
drwxr-xr-x   3 root  wheel   102 Aug 14  2014 HighPointIOP.kext
drwxr-xr-x   3 root  wheel   102 Aug 14  2014 HighPointRR.kext
drwxr-xr-x   4 root  wheel   136 Jun 17 04:30 IntelGraphicsFixup.kext
drwxr-xr-x   4 root  wheel   136 Jun 17 04:30 IntelMausiEthernet.kext
drwxr-xr-x   4 root  wheel   136 Jun 17 04:30 Lilu.kext
drwxr-xr-x   3 root  wheel   102 Mar 31  2017 PromiseSTEX.kext
drwxr-xr-x   4 root  wheel   136 Jun 17 04:30 Shiki.kext
drwxr-xr-x   3 root  wheel   102 Aug 21  2017 SoftRAID.kext
drwxr-xr-x   3 root  wheel   102 Jun 17 04:30 USBInjectAll.kext
$ chmod a+x lilufriend_kext_checker.sh
$ ./lilufriend_kext_checker.sh
./lilufriend_kext_checker.sh 
# Add the following to OSBundleLibraries of 
/Library/Extensions/AppleALC.kext/Contents/Info.plist: invalid object in plist for destination format
        <key>as.vit9696.Shiki</key>
        <string>1.0</string>
        <key>org.vanilla.driver.CPUFriend</key>
        <string>1.0</string>
        <key>as.lvs1974.IntelGraphicsFixup</key>
        <string>1.0</string>
        <key>as.vit9696.Shiki</key>
        <string>1.0</string>
PMheart commented 6 years ago

Hi!

Unfortunately it seems that this helper script is not written by me. Where is it from? (Or maybe I have totally forgotten... Sorry, have not maintained LiluFriend for a long while.) If the script fails, then have you tried to modify manually? You should have a try and report. By the way, if it still fails anyway, then try injecting everything via bootloader as suggested by the author @vit9696.

Regards, PMheart

PMheart commented 6 years ago

No news here anymore? Issue closed.