forked from RehabMan/HP-ProBook-4x30s-DSDT-Patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_downloads.sh
executable file
·69 lines (53 loc) · 1.77 KB
/
install_downloads.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
#set -x
EXCEPTIONS=
ESSENTIAL="AppleALC.kext CodecCommander.kext ProBookAtheros.kext"
# include subroutines
source "$(dirname ${BASH_SOURCE[0]})"/_tools/_install_subs.sh
warn_about_superuser
# install tools
install_tools
# remove kexts that are no longer used
remove_deprecated_kexts
remove_kext AppleHDAIDT.kext
remove_kext AppleHDAALC.kext
remove_kext USBXHCI_4x40s.kext
remove_kext SATA-100-series-unsupported.kext
remove_kext AppleHDA_ProBook.kext
# using AppleALC.kext, remove patched zml.zlib files
sudo rm -f /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml.zlib
# install required kexts
install_download_kexts
install_brcmpatchram_kexts
install_fakepciid_xhcimux
install_fakepciid_intel_hdmi_audio
install_backlight_kexts
# install special kexts specific to ProBook
install_kext kexts/HSSDBlockStorage.kext
install_kext kexts/JMB38X.kext
install_kext kexts/JMicronATA.kext
# install other common kexts
install_kext _tools/kexts/XHCI-unsupported.kext
install_kext _tools/kexts/SATA-unsupported.kext
install_kext _tools/kexts/ProBookAtheros.kext
# install HackrNVMEFamily-.* if it is found in Clover/kexts
EFI="$(./mount_efi.sh)"
kext="$(echo "$EFI"/EFI/CLOVER/kexts/Other/HackrNVMeFamily-*.kext)"
if [[ -e "$kext" ]]; then
install_kext "$kext"
fi
# LiluFriend and kernel cache rebuild
finish_kexts
# update kexts on EFI/CLOVER/kexts/Other
update_efi_kexts
# install HPFanReset.efi
zip=`echo -n _downloads/efi/HPFanReset*.zip`
out=${zip/.efi.zip/}
rm -Rf $out && unzip -q -d $out $zip
echo copying $out/*.efi to "$EFI"/EFI/CLOVER/drivers64UEFI
cp $out/*.efi "$EFI"/EFI/CLOVER/drivers64UEFI
# delete old kexts that might be on EFI
rm -Rf "$EFI"/EFI/CLOVER/kexts/Other/SATA-100-series-unsupported.kext
# VoodooPS2Daemon is deprecated
remove_voodoops2daemon
#EOF