Chameleon

Chameleon Commit Details

Date:2011-09-04 02:50:41 (12 years 7 months ago)
Author:ErmaC
Commit:1498
Parents: 1497
Message:Merge Blackosx changes for fdisk440 and postinstall scripts for checking existence of org.chameleon.Boot.plist, generating it if it doesn't exist. Also "fix" the Boot Banner postinstall script add "space" between the two word.. Merge the scorpius Unstretch patch for chameleon boot Screen --> http://forum.voodooprojects.org/index.php/topic,2158.0.html
Changes:
M/branches/ErmaC/i386/boot0/Cconfig
M/branches/ErmaC/package/Scripts/Resolutions/1024x600x32/postinstall
M/branches/ErmaC/i386/libsaio/smbios_getters.c
M/branches/ErmaC/i386/modules/MakeInc.dir
M/branches/ErmaC/package/Scripts/BaseOptions/DropSSDT/postinstall
M/branches/ErmaC/package/Scripts/Advanced/SMBIOSdefaults/postinstall
M/branches/ErmaC/package/Scripts/Advanced/GUI/postinstall
M/branches/ErmaC/package/Scripts/Advanced/LegacyLogo/postinstall
M/branches/ErmaC/package/Scripts/Advanced/Wake/postinstall
M/branches/ErmaC/package/Scripts/Resolutions/1280x800x32/postinstall
M/branches/ErmaC/package/Scripts/Standard/postinstall
M/branches/ErmaC/package/Scripts/Advanced/ShowInfo/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/arch/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/EnableC3State/postinstall
M/branches/ErmaC/package/Scripts/EFI/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/GenerateCStates/postinstall
M/branches/ErmaC/package/buildpkg.sh
M/branches/ErmaC/package/Scripts/Advanced/Wait/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/GraphicsEnabler/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/RestartFix/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/GeneratePStates/postinstall
M/branches/ErmaC/package/Scripts/Post/postinstall
M/branches/ErmaC/package/Scripts/Advanced/EHCIacquire/postinstall
M/branches/ErmaC/package/Scripts/Advanced/VBIOS/postinstall
M/branches/ErmaC/package/Scripts/Advanced/UseMemDetect/postinstall
M/branches/ErmaC/package/Scripts/Resolutions/1600x900x32/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/InstantMenu/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall
M/branches/ErmaC/package/Scripts/Resolutions/1440x900x32/postinstall
M/branches/ErmaC/package/Scripts/Advanced/BootBanner/postinstall
M/branches/ErmaC/package/Scripts/Advanced/Npci/postinstall
M/branches/ErmaC/package/Scripts/Advanced/UHCIreset/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/EnableC2State/postinstall
M/branches/ErmaC/i386/boot0/boot0.s
M/branches/ErmaC/package/Scripts/Resolutions/1280x960x32/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/EnableC4State/postinstall
M/branches/ErmaC/package/Scripts/Resolutions/1024x768x32/postinstall
M/branches/ErmaC/package/Scripts/Resolutions/1920x1200x32/postinstall
M/branches/ErmaC/package/Scripts/Advanced/UseNvidiaROM/postinstall
M/branches/ErmaC/package/Scripts/Advanced/ForceWake/postinstall
M/branches/ErmaC/package/Scripts/Resolutions/1280x1024x32/postinstall
M/branches/ErmaC/package/Scripts/Advanced/UseAtiROM/postinstall
M/branches/ErmaC/package/Scripts/Resolutions/1680x1050x32/postinstall
M/branches/ErmaC/package/Scripts/Resolutions/1920x1080x32/postinstall
M/branches/ErmaC/i386/modules/Makefile
M/branches/ErmaC/package/Scripts/Advanced/QuietBoot/postinstall
M/branches/ErmaC/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall
M/branches/ErmaC/package/Scripts/Advanced/ForceHPET/postinstall

File differences

branches/ErmaC/i386/libsaio/smbios_getters.c
2121
2222
2323
24
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
2553
2654
2755
......
3361
3462
3563
36
64
3765
3866
3967
......
113141
114142
115143
116
144
117145
118146
119147
bool getProcessorInformationExternalClock(returnType *value)
{
value->word = Platform.CPU.FSBFrequency/1000000;
if (Platform.CPU.Vendor == CPUID_VENDOR_INTEL) // Intel
{
switch (Platform.CPU.Family)
{
case 0x06:
{
switch (Platform.CPU.Model)
{
// set external clock to 0 for SANDY
// removes FSB info from system profiler as on real mac's.
case CPU_MODEL_SANDY_XEON:
case CPU_MODEL_SANDY:
value->word = 0;
break;
default:
value->word = Platform.CPU.FSBFrequency/1000000;
}
}
break;
default:
value->word = Platform.CPU.FSBFrequency/1000000;
}
}
else
{
value->word = Platform.CPU.FSBFrequency/1000000;
}
return true;
}
bool getSMBOemProcessorBusSpeed(returnType *value)
{
if (Platform.CPU.Vendor == 0x756E6547) // Intel
if (Platform.CPU.Vendor == CPUID_VENDOR_INTEL) // Intel
{
switch (Platform.CPU.Family)
{
value->word = simpleGetSMBOemProcessorType();
if (Platform.CPU.Vendor == 0x756E6547) // Intel
if (Platform.CPU.Vendor == CPUID_VENDOR_INTEL) // Intel
{
if (!done)
{
branches/ErmaC/i386/boot0/boot0.s
6060
6161
6262
63
64
65
66
67
6368
6469
6570
......
230235
231236
232237
238
239
240
241
233242
234243
235244
......
758767
759768
760769
770
771
772
773
774
775
776
777
778
779
780
781
782
761783
762784
763785
......
765787
766788
767789
790
791
792
793
768794
769795
770796
VERBOSEEQU CONFIG_BOOT0_VERBOSE
;
; Set to 1 to enable unstretch mode
;
UNSTRETCHEQU CONFIG_BOOT0_UNSTRETCH
;
; Various constants.
;
kBoot0SegmentEQU 0x0000
call print_hex
%endif
%if UNSTRETCH
call disable_scaler
%endif
;
; Since this code may not always reside in the MBR, always start by
; loading the MBR to kMBRBuffer and LBA1 to kGPTBuffer.
ret
%endif ;DEBUG
%if UNSTRETCH
;--------------------------------------------------------------------------
; Disable On-Chip Scaling for nVidia Cards
;
disable_scaler:
mov ax,4F14h ;VESA VBE OEM function
mov bl,2 ;Subfunction 02 = Set Panel Expansion/Centering
mov bh,1 ;00 = Return Current Setting, 01 = Set Centering/Expansion
mov cx,0001h ;Exp. mode: 00 = Scaled, 01 = Centered 1:1, 02 = Left Corner 1:1
int 10h ;call VGA/VBE service
LogString(nv_scaler_str)
ret
%endif
;--------------------------------------------------------------------------
; NULL terminated strings.
log_title_strdb 10, 13, 'boot0: ', 0
boot_error_str db 'error', 0
%if UNSTRETCH
nv_scaler_strdb 'Unstretch', 0
%endif ;DEBUG
%if VERBOSE
gpt_strdb 'GPT', 0
test_strdb 'test', 0
branches/ErmaC/i386/boot0/Cconfig
1212
1313
1414
15
15
1616
1717
1818
1919
2020
21
22
23
24
25
26
27
28
29
config BOOT0_VERBOSE
bool "boot0 verbose support"
default y
default n
help
Say Y here if you want to enable boot0 verbose messages.
boot0 will print out status updates as it executes to
notify the user of progress in the initial boot sequence.
When in doubt, say "Y".
config BOOT0_UNSTRETCH
bool "boot0 unstretch support"
default y
help
Say Y here if you want your Chameleon Boot Screen to be
unstretched. Requires a nVidia card, and a digital LCD
connected via DVI.
When in doubt, say "Y".
branches/ErmaC/i386/modules/MakeInc.dir
7272
7373
7474
75
7576
7677
7778
......
8687
8788
8889
90
8991
9092
9193
......
146148
147149
148150
151
149152
150153
151154
......
177180
178181
179182
180
183
# Make this as a *MODULE*
all: dylib
@for d in $(SUBDIRS); do (cd $$d; $(MAKE) $@ ); done
else
# Module not selected to be compiled as a module
# Make this *BUILT IN*
all: dylib_LINKER
@for d in $(SUBDIRS); do (cd $$d; $(MAKE) $@ ); done
else
# Module not selected to be built in
clean:
@for d in $(SUBDIRS); do (cd $$d && $(MAKE) $@ ); done
@echo "\t[RM] $(SYMROOT)/modules/$(MODULE_NAME).dylib"
@echo "\t[RM] $(OBJROOT)"
@echo "\t[RM] $(DSTROOT)"
@echo "$(MODULE_DESCRIPTION)" > $@
#dependencies
-include $(OBJROOT)/Makedep
-include $(OBJROOT)/Makedep
branches/ErmaC/i386/modules/Makefile
1010
1111
1212
13
14
13
14
1515
16
17
18
1619
20
21
22
23
24
25
26
27
28
29
30
31
1732
1833
1934
include ${SRCROOT}/Make.rules
# The order of building is important.
SUBDIRS = klibc uClibcxx Resolution HelloWorld
# The order of building modules is important.
SUBDIRS =
ifdef CONFIG_KLIBC_MODULE
SUBDIRS += klibc
endif
ifdef CONFIG_UCLIBCXX_MODULE
SUBDIRS += uClibcxx
endif
ifdef CONFIG_RESOLUTION_MODULE
SUBDIRS += Resolution
endif
ifdef CONFIG_HELLOWORLD_MODULE
SUBDIRS += HelloWorld
endif
CFLAGS= -O3 $(MORECPP) -arch i386 -g -static
DEFINES=
CONFIG = hd
branches/ErmaC/package/Scripts/Standard/postinstall
11
22
3
34
45
56
......
234235
235236
236237
237
238
238239
239240
240241
......
291292
292293
293294
294
295
295296
296297
297298
298299
299300
300
301
301302
302303
303304
......
310311
311312
312313
313
314314
315315
316316
317317
318318
319319
320
321
322
323
324
320
321
325322
326323
327324
......
332329
333330
334331
335
336332
337333
338334
339
335
340336
341337
342338
......
346342
347343
348344
349
345
350346
351347
352348
......
362358
363359
364360
365
366361
367362
368363
#!/bin/bash
diskloader="boot0"
diskloaderdualboot="boot0md"
partitionloaderhfs="boot1h"
efiformat="hfs"
fi
if [ "$( fstyp ${bootdev} | grep msdos )" ]; then
echo "${bootdev} is currently formatted as msdos" #Azipkg: hum... it's not really msdos, but ok...
echo "${bootdev} is currently formatted as msdos"
efiformat="msdos"
fi
echo "-----------------------------------------------"
if [ ${disksignature} == "00000000" ]; then
echo "Executing command: fdisk440 -u -f /usr/standalone/i386/${diskloader} -y ${bootdisk}"
fdisk440 -u -f "${bootvolume}/usr/standalone/i386/${diskloader}" -y ${bootdisk}
"${bootresources}/Tools/fdisk440" -u -f "${bootvolume}/usr/standalone/i386/${diskloader}" -y ${bootdisk}
else
#---------------------------------------------------------------------
# If it exists then Windows is also installed on the HDD and we need to write boot0hfs
#---------------------------------------------------------------------
echo "Executing command: fdisk440 -u -f /usr/standalone/i386/${diskloaderdualboot} -y ${bootdisk}"
fdisk440 -u -f "${bootvolume}/usr/standalone/i386/${diskloaderdualboot}" -y ${bootdisk}
"${bootresources}/Tools/fdisk440" -u -f "${bootvolume}/usr/standalone/i386/${diskloaderdualboot}" -y ${bootdisk}
fi
else
echo "Diskupdate is false, so no stage 0 file was written"
if [ ${efiformat} = "msdos" ]; then
echo "Executing command: dd if=/usr/standalone/i386/${partitionloaderfat} of=${bootrdev}"
#Azipkg: just like this??... no preparation???
dd if="${bootvolume}/usr/standalone/i386/${partitionloaderfat}" of=${bootrdev}
fi
echo "Executing command: cp /usr/standalone/i386/${filesystemloader} ${bootvolume}"
cp "${bootvolume}/usr/standalone/i386/${filesystemloader}" "${bootvolume}"
#Azipkg: at this point, we don't know if the user has setfile installed...
# and it looks like it's not found on "booteresources" ???
# do we really want to hide "boot"?... i never do...! IS THIS DONE HERE ??? SEE AT THE END OF THE FILE...
#echo "Executing command: ${bootresources}/Tools/SetFile -a V ${bootvolume}/${filesystemloader}"
#"${bootresources}/Tools/SetFile" -a V "${bootvolume}/${filesystemloader}"
echo "Executing command: ${bootresources}/Tools/SetFile -a V ${bootvolume}/${filesystemloader}"
"${bootresources}/Tools/SetFile" -a V "${bootvolume}/${filesystemloader}"
echo "-----------------------------------------------"
echo ""
echo "Set Active Partition ONLY if Windows is not installed"
echo "*****************************************************"
#Azipkg: works for EFI, but does it work for other GPT partitions?... check, was under the impression that NO??!
if [ ${disksignature} == "00000000" ]; then
# echo "Windows is not installed so let's change the active partition"
partitionactive=$( fdisk440 -d ${bootrdisk} | grep -n "*" | awk -F: '{print $1}')
partitionactive=$( "${bootresources}/Tools/fdisk440" -d ${bootrdisk} | grep -n "*" | awk -F: '{print $1}')
echo "Current Active Partition: ${partitionactive}"
if [ "${partitionactive}" = "${bootslice}" ]; then
# BadAxe requires EFI partition to be flagged active.
# but it doesn't' hurt to do it for any non-windows partition.
fdisk440 -e ${bootrdisk} <<-MAKEACTIVE
"${bootresources}/Tools/fdisk440" -e ${bootrdisk} <<-MAKEACTIVE
print
flag ${bootslice}
write
echo ""
# hide boot file
#Azipkg: do we really want to hide "boot"?... i never do...
chflags hidden "${3}/boot"
echo "boot file hidden ${3}/boot"
branches/ErmaC/package/Scripts/EFI/postinstall
6363
6464
6565
66
6667
6768
6869
......
244245
245246
246247
247
248
248249
249250
250251
......
271272
272273
273274
274
275
275276
276277
277278
......
372373
373374
374375
375
376376
377377
378378
......
407407
408408
409409
410
410
411411
412412
413413
......
432432
433433
434434
435
436435
437436
438437
echo ""
echo ""
bootvolume="/Volumes/$bootervolumename"
bootdev=${bootdev%s*}s1
bootrdev=${bootdev/disk/rdisk}
}
} #Azipkg: ???
}
start ${3}
efiformat="hfs"
fi
if [ "$( fstyp ${bootdev} | grep msdos )" ]; then
echo "${bootdev} is currently formatted as msdos" #Azipkg: hum... it's not really msdos, but ok...
echo "${bootdev} is currently formatted as msdos"
efiformat="msdos"
fi
echo "-----------------------------------------------"
#MAKEACTIVE
#fi
#Azipkg: works for EFI, but does it work for other GPT partitions?... check, was under the impression that NO??!
if [ ${disksignature} == "00000000" ]; then
# echo "Windows is not installed so let's change the active partition"
#checkpartitionbootcode check
#checkpartitionactive
#Azipkg: this forces the user to unmount the EFI part via terminal --> sudo umount /volumes/efi...?!
echo "==============================================="
echo "Mount EFI partition:"
echo "********************"
echo "Executing command: cp "${osxvolume}/usr/standalone/i386/${filesystemloader}" ${bootvolume}/boot"
cp "${osxvolume}/usr/standalone/i386/${filesystemloader}" "${bootvolume}/boot"
echo "boot written"
#Azipkg: we're still missing copy Extra folder into EFI, else no themes & modules...???
echo "-----------------------------------------------"
echo ""
branches/ErmaC/package/Scripts/Advanced/ForceHPET/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if ForceHPET has been written or not
ForceHPETCheck = False
branches/ErmaC/package/Scripts/Advanced/EHCIacquire/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if EHCIacquire has been written or not
EHCIacquireCheck = False
branches/ErmaC/package/Scripts/Advanced/VBIOS/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if VBIOS has been written or not
VBIOSCheck = False
branches/ErmaC/package/Scripts/Advanced/GUI/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
......
2731
2832
2933
30
34
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if GUI has been written or not
GUICheck = False
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
outfile.close()
branches/ErmaC/package/Scripts/Advanced/SMBIOSdefaults/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if SMBIOSdefault has been written or not
SMBIOSdefaultCheck = False
branches/ErmaC/package/Scripts/Advanced/UseMemDetect/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if UseMemDetect has been written or not
UseMemDetectCheck = False
branches/ErmaC/package/Scripts/Advanced/LegacyLogo/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
......
1620
1721
1822
19
23
2024
2125
2226
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if LegacyLogo has been written or not
LegacyLogoCheck = False
for line in infile:
# if we finish the tags and haven't written LegacyLogo Yet
if "</dict>" in line and LegacyLogoCheck == False:
line = " <key>LegacyLogo</key>\n"
line = " <key>Legacy Logo</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
LegacyLogoCheck = True
branches/ErmaC/package/Scripts/Advanced/Wake/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Wake has been written or not
WakeCheck = False
branches/ErmaC/package/Scripts/Advanced/BootBanner/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
......
1620
1721
1822
19
23
2024
2125
2226
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if BootBanner has been written or not
BootBannerCheck = False
for line in infile:
# if we finish the tags and haven't written BootBanner Yet
if "</dict>" in line and BootBannerCheck == False:
line = " <key>BootBanner</key>\n"
line = " <key>Boot Banner</key>\n"
line += " <string>No</string>\n"
line += "</dict>\n"
BootBannerCheck = True
branches/ErmaC/package/Scripts/Advanced/Npci/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Kernel Flags has been written or not
KernelFlagsCheck = False
branches/ErmaC/package/Scripts/Advanced/UHCIreset/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if UHCIreset has been written or not
UHCIresetCheck = False
branches/ErmaC/package/Scripts/Advanced/ShowInfo/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
......
2731
2832
2933
30
34
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if ShowInfo has been written or not
ShowInfoCheck = False
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
outfile.close()
branches/ErmaC/package/Scripts/Advanced/Wait/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Wait has been written or not
WaitCheck = False
branches/ErmaC/package/Scripts/Advanced/UseNvidiaROM/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if UseNvidiaROM has been written or not
UseNvidiaROMCheck = False
branches/ErmaC/package/Scripts/Advanced/ForceWake/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if ForceWake has been written or not
ForceWakeCheck = False
branches/ErmaC/package/Scripts/Advanced/UseAtiROM/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if UseAtiROM has been written or not
UseAtiROMCheck = False
branches/ErmaC/package/Scripts/Advanced/QuietBoot/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if QuietBoot has been written or not
QuietBootCheck = False
branches/ErmaC/package/Scripts/Post/postinstall
3535
3636
3737
38
38
3939
4040
# delete the temporary Chameleon folder
rm -rf "$dest_vol/tmpcham" #Azipkg: were's this? sandbox???
rm -rf "$dest_vol/tmpcham"
echo "Done..."
branches/ErmaC/package/Scripts/BaseOptions/GenerateCStates/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if GenerateCStates has been written or not
GenerateCStatesCheck = False
branches/ErmaC/package/Scripts/BaseOptions/DropSSDT/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if DropSSDT has been written or not
DropSSDTCheck = False
branches/ErmaC/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if EthernetBuiltIn has been written or not
EthernetBuiltInCheck = False
branches/ErmaC/package/Scripts/BaseOptions/InstantMenu/postinstall
44
55
66
7
78
89
910
1011
12
13
14
1115
1216
1317
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Instant Menu has been written or not
InstantMenuCheck = False
branches/ErmaC/package/Scripts/BaseOptions/GraphicsEnabler/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if GraphicsEnabler has been written or not
GraphicsEnablerCheck = False
branches/ErmaC/package/Scripts/BaseOptions/RestartFix/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if RestartFix has been written or not
RestartFixCheck = False
branches/ErmaC/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if CSTUsingSystemIO has been written or not
CSTUsingSystemIOCheck = False
branches/ErmaC/package/Scripts/BaseOptions/EnableC2State/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if EnableC2State has been written or not
EnableC2StateCheck = False
branches/ErmaC/package/Scripts/BaseOptions/EnableC3State/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if EnableC3State has been written or not
EnableC3StateCheck = False
branches/ErmaC/package/Scripts/BaseOptions/arch/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if arch has been written or not
archCheck = False
branches/ErmaC/package/Scripts/BaseOptions/EnableC4State/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if EnableC4State has been written or not
EnableC4StateCheck = False
branches/ErmaC/package/Scripts/BaseOptions/GeneratePStates/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if GeneratePStates has been written or not
GeneratePStatesCheck = False
branches/ErmaC/package/Scripts/Resolutions/1024x768x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/Scripts/Resolutions/1024x600x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/Scripts/Resolutions/1920x1200x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/Scripts/Resolutions/1600x900x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/Scripts/Resolutions/1280x1024x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/Scripts/Resolutions/1440x900x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/Scripts/Resolutions/1280x800x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/Scripts/Resolutions/1680x1050x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/Scripts/Resolutions/1920x1080x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/Scripts/Resolutions/1280x960x32/postinstall
33
44
55
6
67
78
89
910
11
12
13
1014
1115
1216
import sys
import os
import shutil
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
if not os.path.exists(plist):
shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
infile = open(plist, "r")
# check if Graphics_Mode has been written or not
Graphics_ModeCheck = False
branches/ErmaC/package/buildpkg.sh
8686
8787
8888
89
89
90
9091
9192
9293
......
9596
9697
9798
98
99
100
99101
100102
101103
mkdir -p ${1}/Standard/Root
mkdir -p ${1}/Standard/Scripts/Tools
cp -f ${pkgroot}/Scripts/Standard/* ${1}/Standard/Scripts
# ditto --arch i386 `which SetFile` ${1}/Standard/Scripts/Tools/SetFile
ditto --arch i386 `which SetFile` ${1}/Standard/Scripts/Tools/SetFile
ditto --noextattr --noqtn ${1%/*}/i386/fdisk440 ${1}/Standard/Scripts/Tools
echo "[BUILD] Standard "
buildpackage "${1}/Standard" "/" "${coresize}" "start_enabled=\"true\" start_selected=\"upgrade_allowed()\" selected=\"exclusive(choices['EFI']) &amp;&amp; exclusive(choices['noboot'])\"" >/dev/null 2>&1
# End build standard package
mkdir -p ${1}/EFI/Root
mkdir -p ${1}/EFI/Scripts/Tools
cp -f ${pkgroot}/Scripts/EFI/* ${1}/EFI/Scripts
# ditto --arch i386 `which SetFile` ${1}/EFI/Scripts/Tools/SetFile
ditto --arch i386 `which SetFile` ${1}/EFI/Scripts/Tools/SetFile
ditto --noextattr --noqtn ${1%/*}/i386/fdisk440 ${1}/Standard/Scripts/Tools
echo "[BUILD] EFI "
buildpackage "${1}/EFI" "/" "${coresize}" "start_visible=\"systemHasGPT()\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) &amp;&amp; exclusive(choices['noboot'])\"" >/dev/null 2>&1
# End build efi package

Archive Download the corresponding diff file

Revision: 1498