toleda / audio_CloverALC

macOS Realtek ALC onboard audio with Clover
679 stars 109 forks source link

syntax error near unexpected token `fi' with CloverALC-120_v1.0f.command #105

Open theclue opened 7 years ago

theclue commented 7 years ago

Hi toleda,

just trying to use the latest version of the command file I've got this output. Thus, I've tried using the experimental v1.0f1 version which doesn't have this error (but has other issues instead)

Here's the output of the terminal session. Hope this helps!

Last login: Fri Apr 21 00:13:28 on ttys000 iMac-di-Gabriele:~ theclue$ /Users/theclue/Downloads/audio_cloverALC-120_v1.0f.command ; exit;

Agreement The audio_cloverALC script is for personal use only. Do not distribute the patch, any or all of the files or the resulting patched AppleHDA.kext for any reason without permission. The audio_cloverALC script is provided as is and without any kind of warranty.

File: audio_cloverALC-120.command_v1.0f Release Mode Password: EFI partition is mounted System Integrity Protection status: enabled (Custom Configuration).

Configuration: Apple Internal: disabled Kext Signing: disabled Filesystem Protections: disabled Debugging Restrictions: enabled DTrace Restrictions: enabled NVRAM Protections: enabled BaseSystem Verification: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.

OK to patch /Users/theclue/Downloads/audio_cloverALC-120_v1.0f.command: line 672: syntax error near unexpected token fi' /Users/theclue/Downloads/audio_cloverALC-120_v1.0f.command: line 672:fi' logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed.

toleda commented 7 years ago

Fixed. Thanks. Download updated version from this repo and run.

theclue commented 7 years ago

tnx, will try shortly.

just to better understand the whole process under the hood...why the one above is an unsupported configuration and how I could fix it?

tnx for support!

toleda commented 7 years ago

macOS assumes fully enabled SIP as the only supported configuration.; set config.plist/RtVariables/CsrActiveConfig/0x0. With fully enable SIP, the script will not run because unsigned kexts will be ignored when kernel cache is rebuilt, potentially, making the system unbootable (no FakeSMC.kext).