Skip to content

Latest commit

 

History

History
 
 

Scripts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

OC Update script

This script is for OpenCore only, it needs an existing and sane configuration of OpenCore, the main aim of this script is to make updating EFI less of a chore.

How to use

bash <(curl -sL --proto-redir -all,https https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/main/Scripts/install_oc.sh)

If for some reason, you want to use a custom EFI(that follow the upstream formats) or GitHub, you can force it with:

# Force URL prompt 
CUSTOM_EFI_URL=1 bash <(curl -sL --proto-redir -all,https https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/main/Scripts/install_oc.sh)
# Fetch patch's and EFI release from custom repo
REPO_NAME='daliansky' REPO_BRANCH='main' bash <(curl -sL --proto-redir -all,https https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/main/Scripts/install_oc.sh)

Feature

  • Automatically detect and download EFI for CML/KBL model.
  • Interactive and colorful log.
  • Smart backup that checks the content with diff.
  • 0xE2 and DVMT/FrameBuffer detection.
  • Bluetooth detection.
  • PlatformInfo/Serial detection.
  • BootArgs interactive diff.
  • SIP interactive diff.
  • Kext/SSDT interactive diff.
  • Validation with ocvalidate and custom check for missing SSDT/Kext file.
  • Automatic installation.
  • Custom patch support.
  • Ask for user interaction when new/unknown kexts is found.

Credits