Open tetherit opened 8 years ago
config.plist damaged, fix or replace.
If I use https://github.com/toleda/audio_CloverALC/blob/master/audio_cloverALC-110.sh instead it does not show this error but I'm still not able to get audio :(
See https://github.com/toleda/audio_CloverALC /README/F. Problem Reporting/Attach requested files
Problem is with the comparison = 1 in the script because the string "AppleHDA" occurs twice sometimes in the same dictionary entry.
The solution is to store the count, check whether it is greater than or equal to 1 and subtract the count from the ktpexisting variable, e.g.:
while [ $ktpexisting -ge 1 ]; do
count=$(sudo /usr/libexec/PlistBuddy -c "Print ':KernelAndKextPatches:KextsToPatch:$index dict'" /tmp/config.plist | grep -c "AppleHDA")
if [ $count -ge 1 ]; then
if [ $(sudo /usr/libexec/PlistBuddy -c "Print ':KernelAndKextPatches:KextsToPatch:$index dict'" /tmp/config.plist | grep -c "x99") = 0 ]; then
sudo /usr/libexec/PlistBuddy -c "Delete ':KernelAndKextPatches:KextsToPatch:$index dict'" /tmp/config.plist
fi
ktpexisting=$((ktpexisting - count))
index=$((index - 1))
fi
Where in the file do we put this text?
Fixed, download latest.
Excellent. Worked perfectly. Thank you.
Hi there,
When I try to run, I see this:
And it seems to loop forever :( - any ideas?