forked from RehabMan/HP-ProBook-4x30s-DSDT-Patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_config.sh
executable file
·208 lines (208 loc) · 14.3 KB
/
make_config.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
#!/bin/bash
printf "!! creating config/config_4x30.plist\n"
cp config_parts/config_master.plist config/config_4x30.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:KernelPm false" config/config_4x30.plist
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" config/config_4x30.plist
/usr/libexec/PlistBuddy -c "Set SMBIOS:ProductName MacBookPro8,1" config/config_4x30.plist
./merge_plist.sh "Devices:Properties" config_parts/config_HD3000-4000_hdmi.plist config/config_4x30.plist
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" config_parts/config_non_Intel_USB3.plist config/config_4x30.plist
printf "\n"
printf "!! creating config/config_4x40.plist\n"
cp config_parts/config_master.plist config/config_4x40.plist
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" config/config_4x40.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" config/config_4x40.plist
./merge_plist.sh "Devices:Properties" config_parts/config_HD3000-4000_hdmi.plist config/config_4x40.plist
printf "\n"
printf "!! creating config/config_4x0_G0.plist\n"
cp config_parts/config_master.plist config/config_4x0_G0.plist
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" config/config_4x0_G0.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" config/config_4x0_G0.plist
./merge_plist.sh "Devices:Properties" config_parts/config_HD3000-4000_hdmi.plist config/config_4x0_G0.plist
printf "\n"
printf "!! creating config/config_4x0_G1_Ivy.plist\n"
cp config/config_4x0_G0.plist config/config_4x0_G1_Ivy.plist
printf "\n"
printf "!! creating config/config_8x0_G1_Ivy.plist\n"
cp config_parts/config_master.plist config/config_8x0_G1_Ivy.plist
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" config/config_8x0_G1_Ivy.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" config/config_8x0_G1_Ivy.plist
./merge_plist.sh "Devices:Properties" config_parts/config_HD3000-4000_dp.plist config/config_8x0_G1_Ivy.plist
printf "\n"
printf "!! creating config/config_ZBook_G0.plist\n"
cp config/config_8x0_G1_Ivy.plist config/config_ZBook_G0.plist
printf "\n"
printf "!! creating config/config_9x70m.plist\n"
cp config_parts/config_master.plist config/config_9x70m.plist
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" config/config_9x70m.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" config/config_9x70m.plist
./merge_plist.sh "Devices:Properties" config_parts/config_HD3000-4000_dp.plist config/config_9x70m.plist
printf "\n"
printf "!! creating config/config_9x80m.plist\n"
cp config_parts/config_master.plist config/config_9x80m.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_9x80m.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" config/config_9x80m.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Haswell_dp.plist config/config_9x80m.plist
printf "\n"
printf "!! creating config/config_6x60p.plist\n"
cp config_parts/config_master.plist config/config_6x60p.plist
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" config/config_6x60p.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:KernelPm false" config/config_6x60p.plist
/usr/libexec/PlistBuddy -c "Set SMBIOS:ProductName MacBookPro8,1" config/config_6x60p.plist
./merge_plist.sh "Devices:Properties" config_parts/config_HD3000-4000_dp.plist config/config_6x60p.plist
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" config_parts/config_non_Intel_USB3.plist config/config_6x60p.plist
printf "\n"
printf "!! creating config/config_2x60p.plist\n"
cp config/config_6x60p.plist config/config_2x60p.plist
printf "\n"
printf "!! creating config/config_8x60p.plist\n"
cp config/config_6x60p.plist config/config_8x60p.plist
printf "\n"
printf "!! creating config/config_5x30m.plist\n"
cp config_parts/config_master.plist config/config_5x30m.plist
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" config/config_5x30m.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:KernelPm false" config/config_5x30m.plist
/usr/libexec/PlistBuddy -c "Set SMBIOS:ProductName MacBookPro8,1" config/config_5x30m.plist
./merge_plist.sh "Devices:Properties" config_parts/config_HD3000-4000_hdmi.plist config/config_5x30m.plist
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" config_parts/config_non_Intel_USB3.plist config/config_5x30m.plist
printf "\n"
printf "!! creating config/config_6x70p.plist\n"
cp config_parts/config_master.plist config/config_6x70p.plist
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" config/config_6x70p.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" config/config_6x70p.plist
./merge_plist.sh "Devices:Properties" config_parts/config_HD3000-4000_dp.plist config/config_6x70p.plist
printf "\n"
printf "!! creating config/config_8x70p.plist\n"
cp config/config_6x70p.plist config/config_8x70p.plist
printf "\n"
printf "!! creating config/config_2x70p.plist\n"
cp config/config_6x70p.plist config/config_2x70p.plist
printf "\n"
printf "!! creating config/config_3x0_G1.plist\n"
cp config_parts/config_master.plist config/config_3x0_G1.plist
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" config/config_3x0_G1.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" config/config_3x0_G1.plist
./merge_plist.sh "Devices:Properties" config_parts/config_HD3000-4000_hdmi.plist config/config_3x0_G1.plist
printf "\n"
printf "!! creating config/config_8x0_G1_Haswell.plist\n"
cp config_parts/config_master.plist config/config_8x0_G1_Haswell.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_8x0_G1_Haswell.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" config/config_8x0_G1_Haswell.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Haswell_dp.plist config/config_8x0_G1_Haswell.plist
printf "\n"
printf "!! creating config/config_4x0_G1_Haswell.plist\n"
cp config_parts/config_master.plist config/config_4x0_G1_Haswell.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_4x0_G1_Haswell.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" config/config_4x0_G1_Haswell.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Haswell_hdmi.plist config/config_4x0_G1_Haswell.plist
printf "\n"
printf "!! creating config/config_4x0_G2_Haswell.plist\n"
cp config_parts/config_master.plist config/config_4x0_G2_Haswell.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_4x0_G2_Haswell.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" config/config_4x0_G2_Haswell.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Haswell_hdmi.plist config/config_4x0_G2_Haswell.plist
printf "\n"
printf "!! creating config/config_8x0_G2_Haswell.plist\n"
cp config_parts/config_master.plist config/config_8x0_G2_Haswell.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_8x0_G2_Haswell.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" config/config_8x0_G2_Haswell.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Haswell_dp.plist config/config_8x0_G2_Haswell.plist
printf "\n"
printf "!! creating config/config_4x0_G2_Broadwell.plist\n"
cp config_parts/config_master.plist config/config_4x0_G2_Broadwell.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_4x0_G2_Broadwell.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir7,2" config/config_4x0_G2_Broadwell.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Broadwell_hdmi.plist config/config_4x0_G2_Broadwell.plist
printf "\n"
printf "!! creating config/config_8x0_G2_Broadwell.plist\n"
cp config_parts/config_master.plist config/config_8x0_G2_Broadwell.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_8x0_G2_Broadwell.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir7,2" config/config_8x0_G2_Broadwell.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Broadwell_dp.plist config/config_8x0_G2_Broadwell.plist
printf "\n"
printf "!! creating config/config_8x0_G3_Broadwell.plist\n"
cp config/config_8x0_G2_Broadwell.plist config/config_8x0_G3_Broadwell.plist
printf "\n"
printf "!! creating config/config_1020_G1_Broadwell.plist\n"
cp config_parts/config_master.plist config/config_1020_G1_Broadwell.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_1020_G1_Broadwell.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir7,2" config/config_1020_G1_Broadwell.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Broadwell_hdmi.plist config/config_1020_G1_Broadwell.plist
printf "\n"
printf "!! creating config/config_ZBook_G2_Haswell.plist\n"
cp config_parts/config_master.plist config/config_ZBook_G2_Haswell.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_ZBook_G2_Haswell.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_ZBook_G2_Haswell.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Haswell_no_hdmi_dp.plist config/config_ZBook_G2_Haswell.plist
printf "\n"
printf "!! creating config/config_ZBook_G1_Haswell.plist\n"
cp config/config_ZBook_G2_Haswell.plist config/config_ZBook_G1_Haswell.plist
printf "\n"
printf "!! creating config/config_ZBook_G2_Broadwell.plist\n"
cp config_parts/config_master.plist config/config_ZBook_G2_Broadwell.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_ZBook_G2_Broadwell.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_ZBook_G2_Broadwell.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Broadwell_dp.plist config/config_ZBook_G2_Broadwell.plist
printf "\n"
printf "!! creating config/config_ZBook_G2_Haswell_ALC280.plist\n"
cp config_parts/config_master.plist config/config_ZBook_G2_Haswell_ALC280.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_ZBook_G2_Haswell_ALC280.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_ZBook_G2_Haswell_ALC280.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Haswell_dp.plist config/config_ZBook_G2_Haswell_ALC280.plist
printf "\n"
printf "!! creating config/config_8x0_G3_Skylake.plist\n"
cp config_parts/config_master.plist config/config_8x0_G3_Skylake.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_8x0_G3_Skylake.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_8x0_G3_Skylake.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Skylake_dp.plist config/config_8x0_G3_Skylake.plist
printf "\n"
printf "!! creating config/config_ZBook_G3_Skylake.plist\n"
cp config/config_8x0_G3_Skylake.plist config/config_ZBook_G3_Skylake.plist
printf "\n"
printf "!! creating config/config_4x0_G3_Skylake.plist\n"
cp config_parts/config_master.plist config/config_4x0_G3_Skylake.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_4x0_G3_Skylake.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_4x0_G3_Skylake.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Skylake_hdmi.plist config/config_4x0_G3_Skylake.plist
printf "\n"
printf "!! creating config/config_1030_G1_Skylake.plist\n"
cp config/config_8x0_G3_Skylake.plist config/config_1030_G1_Skylake.plist
printf "\n"
printf "!! creating config/config_6x0_G2_Skylake.plist\n"
cp config_parts/config_master.plist config/config_6x0_G2_Skylake.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_6x0_G2_Skylake.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_6x0_G2_Skylake.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Skylake_dp.plist config/config_6x0_G2_Skylake.plist
printf "\n"
printf "!! creating config/config_1040_G1_Haswell.plist\n"
cp config/config_8x0_G1_Haswell.plist config/config_1040_G1_Haswell.plist
printf "\n"
printf "!! creating config/config_6x0_G1_Haswell.plist\n"
cp config/config_8x0_G1_Haswell.plist config/config_6x0_G1_Haswell.plist
printf "\n"
printf "!! creating config/config_1040_G3_Skylake.plist\n"
cp config_parts/config_master.plist config/config_1040_G3_Skylake.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_1040_G3_Skylake.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_1040_G3_Skylake.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Skylake_dp.plist config/config_1040_G3_Skylake.plist
printf "\n"
printf "!! creating config/config_1050_G1_KabyLake-R.plist\n"
cp config_parts/config_master.plist config/config_1050_G1_KabyLake-R.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_1050_G1_KabyLake-R.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_1050_G1_KabyLake-R.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Kabylake_dp.plist config/config_1050_G1_KabyLake-R.plist
printf "\n"
printf "!! creating config/config_4x0_G4_Kabylake.plist\n"
cp config_parts/config_master.plist config/config_4x0_G4_Kabylake.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_4x0_G4_Kabylake.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_4x0_G4_Kabylake.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Kabylake_hdmi.plist config/config_4x0_G4_Kabylake.plist
printf "\n"
printf "!! creating config/config_4x0_G5_Kabylake-R.plist\n"
cp config/config_4x0_G4_Kabylake.plist config/config_4x0_G5_Kabylake-R.plist
printf "\n"
printf "!! creating config/config_8x0_G4_Kabylake.plist\n"
cp config_parts/config_master.plist config/config_8x0_G4_Kabylake.plist
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" config/config_8x0_G4_Kabylake.plist
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" config/config_8x0_G4_Kabylake.plist
./merge_plist.sh "Devices:Properties" config_parts/config_Kabylake_dp.plist config/config_8x0_G4_Kabylake.plist
printf "\n"