slemblod Posted March 9, 2014 Share Posted March 9, 2014 Hello! I am making an automation script for installing Clover onto a drive's EFI partition. For editing the stock config.plist i use PlistBuddy (located in /usr/libexec/PlistBuddy), and the following command causes issues: /usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:0:Find data ixnUEQ==" $config I tried replacing ixnUEQ== with other bases, e.g. 8b19d411 or 10001011 00011001 11010100 00010001 but none yields the desired result, which is: <data> ixnEUQ== </data> Do you have any suggestion as to what I could do instead? Any help would be appreciated. Thank you! EDIT: Solved it. See post 3. Link to comment Share on other sites More sharing options...
slemblod Posted March 18, 2014 Author Share Posted March 18, 2014 Bump? i tried messing around with the "defaults" command, but it seems that it can only modify keys at the "root" of the .plist.Should it be possible to do with perl/grep/sed?Thank you! Link to comment Share on other sites More sharing options...
slemblod Posted March 22, 2014 Author Share Posted March 22, 2014 It is not pretty, but it works. I solved it by combining these commands (the gibberish data is the faulty data that ended up in the $config file): /usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:0:Find data ixnUEQ==" $config /usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:0:Replace data kgjsEA==" $config /usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:1:Find data QVBQTEUgU1NE" $config /usr/libexec/PlistBuddy -c "Add :KernelAndKextPatches:KextsToPatch:1:Replace data AAAAAAAAAAAA" $config perl -pi -e 's/aXhuVUVRPT0=/ixnUEQ==/g' $config perl -pi -e 's/a2dqc0VBPT0=/kgjsEA==/g' $config perl -pi -e 's/UVZCUVRFVWdVMU5F/QVBQTEUgU1NE/g' $config perl -pi -e 's/QUFBQUFBQUFBQUFB/AAAAAAAAAAAA/g' $config 1 Link to comment Share on other sites More sharing options...
el coniglio Posted April 16, 2014 Share Posted April 16, 2014 Save the binary data to a file and use the Import command. /usr/libexec/PlistBuddy -c \"Import :IOKitPersonalities:HDA\ Hardware\ Config\ Resource:HDAConfigDefault:0:AFGLowPowerState tmp.bin\" plist" where tmp.bin is the binary file. 1 Link to comment Share on other sites More sharing options...
Recommended Posts