Chameleon

Chameleon Commit Details

Date:2011-09-04 03:38:10 (12 years 7 months ago)
Author:ErmaC
Commit:1499
Parents: 1498
Message:Fix Package installer fails to find fdisk440 ( http://forge.voodooprojects.org/p/chameleon/issues/168/) Also "fix" the Boot Banner and Legacy Logo postinstall script add "space" between the two word..
Changes:
M/trunk/package/Scripts/Advanced/UHCIreset/postinstall
M/trunk/package/Scripts/Advanced/ShowInfo/postinstall
M/trunk/package/Scripts/EFI/postinstall
M/trunk/package/Scripts/BaseOptions/EnableC3State/postinstall
M/trunk/package/Scripts/BaseOptions/GenerateCStates/postinstall
M/trunk/package/buildpkg.sh
M/trunk/package/Scripts/Resolutions/1920x1200x32/postinstall
M/trunk/package/Scripts/Advanced/Wait/postinstall
M/trunk/package/Scripts/Advanced/ForceWake/postinstall
M/trunk/package/Scripts/Resolutions/1280x1024x32/postinstall
M/trunk/package/Scripts/Advanced/UseAtiROM/postinstall
M/trunk/package/Scripts/Resolutions/1920x1080x32/postinstall
M/trunk/package/Scripts/Resolutions/1680x1050x32/postinstall
M/trunk/package/Scripts/BaseOptions/GraphicsEnabler/postinstall
M/trunk/package/Scripts/Advanced/QuietBoot/postinstall
M/trunk/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall
M/trunk/package/Scripts/Advanced/ForceHPET/postinstall
M/trunk/package/Scripts/BaseOptions/GeneratePStates/postinstall
M/trunk/package/Scripts/BaseOptions/DropSSDT/postinstall
M/trunk/package/Scripts/Advanced/GUI/postinstall
M/trunk/package/Scripts/Advanced/UseMemDetect/postinstall
M/trunk/package/Scripts/Resolutions/1600x900x32/postinstall
M/trunk/package/Scripts/BaseOptions/InstantMenu/postinstall
M/trunk/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall
M/trunk/package/Scripts/Resolutions/1440x900x32/postinstall
M/trunk/package/Scripts/Advanced/BootBanner/postinstall
M/trunk/package/Scripts/Advanced/Npci/postinstall
M/trunk/package/Scripts/Standard/postinstall
M/trunk/package/Scripts/BaseOptions/EnableC2State/postinstall
M/trunk/package/Scripts/BaseOptions/arch/postinstall
M/trunk/package/Scripts/Resolutions/1280x960x32/postinstall
M/trunk/package/Scripts/BaseOptions/EnableC4State/postinstall
M/trunk/package/Scripts/Resolutions/1024x768x32/postinstall
M/trunk/package/Scripts/Advanced/UseNvidiaROM/postinstall
M/trunk/package/Scripts/BaseOptions/RestartFix/postinstall
M/trunk/package/Scripts/Post/postinstall
M/trunk/package/Scripts/Resolutions/1024x600x32/postinstall
M/trunk/package/Scripts/Advanced/EHCIacquire/postinstall
M/trunk/package/Scripts/Advanced/VBIOS/postinstall
M/trunk/package/Scripts/Advanced/SMBIOSdefaults/postinstall
M/trunk/package/Scripts/Advanced/LegacyLogo/postinstall
M/trunk/package/Scripts/Advanced/Wake/postinstall
M/trunk/package/Scripts/Resolutions/1280x800x32/postinstall

File differences

trunk/package/Scripts/Standard/postinstall
231231
232232
233233
234
234
235235
236236
237237
......
287287
288288
289289
290
290
291291
292292
293293
294294
295
295
296296
297297
298298
299299
300300
301
301
302302
303303
304304
......
332332
333333
334334
335
335
336336
337337
338338
......
342342
343343
344344
345
345
346346
347347
348348
echo "*************************************"
if [ "$( fstyp ${bootdev} | grep hfs )" ]; then
echo "${bootdev} is a currently formatted as HFS"
echo "${bootdev} is currently formatted as HFS"
efiformat="hfs"
fi
if [ "$( fstyp ${bootdev} | grep msdos )" ]; then
echo "Diskupdate = true, so yes"
#---------------------------------------------------------------------
# Check bytes 438-446 of the GPTdiskProtectiveMBR for a Windows Disk Signature
# If there's no Windows disk signature then we can write boot0
#---------------------------------------------------------------------
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 [ ${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
trunk/package/Scripts/EFI/postinstall
268268
269269
270270
271
271
272272
273273
274274
......
298298
299299
300300
301
301
302302
303303
304304
305
306
305
306
307307
308308
309309
310310
311311
312
313
312
313
314
314315
315316
316317
317318
318319
319
320320
321321
322322
323
324
325
326
327
328
329
330
331
332
323
333324
334
335
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
336353
337354
338
339
340
341
342
343
344
345
346355
347356
348357
......
420429
421430
422431
423
424
432
433
425434
426435
427436
fi
if [ "$( fstyp ${bootdev} | grep hfs )" ]; then
echo "${bootdev} is a currently formatted as HFS"
echo "${bootdev} is currently formatted as HFS"
efiformat="hfs"
fi
if [ "$( fstyp ${bootdev} | grep msdos )" ]; then
echo "Diskupdate = true, so yes"
#---------------------------------------------------------------------
# Check bytes 438-446 of the GPTdiskProtectiveMBR for a Windows Disk Signature
# If there's no Windows disk signature then we can write boot0
#---------------------------------------------------------------------
if [ ${disksignature} == "00000000" ]; then
echo "Executing command: fdisk -u -f ${diskloader} -y ${bootdisk}"
fdisk -u -f "${osxvolume}/${diskloader}" -y ${bootdisk}
echo "Executing command: fdisk -u -f "${osxvolume}/usr/standalone/i386/${diskloader}" -y ${bootdisk}"
fdisk -u -f "${osxvolume}/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: fdisk -u -f ${diskloader} -y ${bootdisk}"
fdisk -u -f "${osxvolume}/${diskloader}" -y ${bootdisk}
#Azipkg: diskloader=boot0 ??? boot0hfs/boot0md - remenber this is for GPT!!
echo "Executing command: fdisk -u -f "${osxvolume}/usr/standalone/i386/${diskloader}" -y ${bootdisk}"
fdisk -u -f "${osxvolume}/usr/standalone/i386/${diskloader}" -y ${bootdisk}
fi
else
echo "Diskupdate is false, so no stage 0 file was written"
fi
#echo "Executing command: dd if=${partitionloader} of=${bootrdev}"
#dd if="${osxvolume}/${partitionloader}" of=${bootrdev}
echo "Prepare Stage 1 loader"
echo "Executing command: dd if=${bootrdev} count=1 bs=512 of=/tmp/origbs"
dd if=${bootrdev} count=1 bs=512 of=/tmp/origbs
if [ ${efiformat} = "hfs" ]; then
echo "Executing command: cp ${osxvolume}/${partitionloaderhfs} /tmp/newbs"
cp "${osxvolume}/${partitionloaderhfs}" /tmp/newbs
fi
# if we have an original EFI ("FAT"), copy boot1f32 to newbs
if [ ${efiformat} = "msdos" ]; then
echo "Executing command: cp ${osxvolume}/${partitionloaderfat} /tmp/newbs"
cp "${osxvolume}/${partitionloaderfat}" /tmp/newbs
echo "Prepare Stage 1 loader"
# copy partition boot sector to origbs
echo "Executing command: dd if=${bootrdev} count=1 bs=512 of=/tmp/origbs"
dd if=${bootrdev} count=1 bs=512 of=/tmp/origbs
# copy boot1f32 to newbs
echo "Executing command: cp "${osxvolume}/usr/standalone/i386/${partitionloaderfat}" /tmp/newbs"
cp "${osxvolume}/usr/standalone/i386/${partitionloaderfat}" /tmp/newbs
# "merge" origbs into newbs
echo "Executing command: dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc"
dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc
echo "Write Stage 1 loader"
# write newbs to the partition boot sector
echo "Executing command: dd if=/tmp/newbs of=${bootrdev}"
dd if=/tmp/newbs of=${bootrdev}
else
#Azipkg: this is was failing for me, hanged at boot0: done. Got fine when i removed "bs=512 count=1" ??
# makes no sense but... anyway, i'd remove this!.. no need to change EFI fs if boot1f32 works fine.
# In fact, i'm not a fan of EFI installs so, i'd remove it all!! :)
echo "Write Stage 1 loader"
# just write boot1h to the partition boot sector
echo "Executing command: dd if="${osxvolume}/usr/standalone/i386/${partitionloaderhfs}" of=${bootrdev}"
dd if="${osxvolume}/usr/standalone/i386/${partitionloaderhfs}" of=${bootrdev}
fi
echo "Executing command: dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc"
dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc
echo "Write Stage 1 loader"
echo "Executing command: dd of=${bootrdev} count=1 bs=512 if=/tmp/newbs"
dd if=/tmp/newbs of=${bootrdev} count=1 bs=512
echo "-----------------------------------------------"
echo ""
echo ""
echo "Write Stage 2 loader"
echo "********************"
echo "Executing command: cp ${osxvolume}${filesystemloader} ${bootvolume}/boot"
cp "${osxvolume}${filesystemloader}" "${bootvolume}/boot"
echo "Executing command: cp "${osxvolume}/usr/standalone/i386/${filesystemloader}" ${bootvolume}/boot"
cp "${osxvolume}/usr/standalone/i386/${filesystemloader}" "${bootvolume}/boot"
echo "boot written"
echo "-----------------------------------------------"
trunk/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
trunk/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
trunk/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
trunk/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()
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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()
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/package/Scripts/Post/postinstall
3333
3434
3535
36
36
3737
3838
3939
40
40
dest_vol="$3"
fi
# delee the temporary Chameleon folder
# delete the temporary Chameleon folder
rm -rf "$dest_vol/tmpcham"
echo "Done..."
echo "Done..."
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/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
trunk/package/buildpkg.sh
6161
6262
6363
64
65
66
67
68
69
70
7164
7265
7366
......
9487
9588
9689
97
90
91
9892
9993
10094
......
10397
10498
10599
106
100
101
107102
108103
109104
......
119114
120115
121116
122
123
124
125117
126
127118
128119
129120
......
133124
134125
135126
136
137127
138128
139129
......
460450
461451
462452
463
464
453
454
465455
466456
467457
mkdir -p ${1}/Core/Root/usr/sbin
mkdir -p ${1}/Core/Root/usr/local/bin
mkdir -p ${1}/Core/Root/usr/standalone/i386
# if [ "$(ls -A "${1%/*}/i386/modules")" ]; then
# echo "Modules found."
# mkdir -p ${1}/Core/Root/usr/standalone/i386/modules
# cp -R ${1%/*}/i386/modules ${1}/Core/Root/usr/standalone/i386
# else
# echo "No found modules into dir module"
# fi
ditto --noextattr --noqtn ${1%/*}/i386/boot ${1}/Core/Root/usr/standalone/i386
ditto --noextattr --noqtn ${1%/*}/i386/boot0 ${1}/Core/Root/usr/standalone/i386
ditto --noextattr --noqtn ${1%/*}/i386/boot0md ${1}/Core/Root/usr/standalone/i386
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
###############################
# Supported Modules #
###############################
# AMDGraphicsEnabler.dylib #
# ATiGraphicsEnabler.dylib #
# IntelGraphicsEnabler.dylib #
# klibc.dylib #
# NVIDIAGraphicsEnabler.dylib #
# Resolution.dylib #
# uClibcxx.dylib #
###############################
choices[$((choicescount++))]="<choice\n\tid=\"Module\"\n\ttitle=\"Module_title\"\n\tdescription=\"Module_description\"\n>\n</choice>\n"
((xmlindent++))
packagesidentity="org.chameleon.modules"
# -
if [ -e ${1%/*}/i386/modules/klibc.dylib ]; then
{
# ----
# ditto -xk "${pkgroot}/Icons/pkg.zip" "${pkgroot}/Icons/"
# DeRez -only icns "${pkgroot}/Icons/Icons/pkg.icns" > tempicns.rsrc
# Rez -append tempicns.rsrc -o "${1%/*}/${packagename// /}-${version}-r${revision}.pkg"
# SetFile -a C "${1%/*}/${packagename// /}-${version}-r${revision}.pkg"
# Rez -append tempicns.rsrc -o "${1%/*}/$packagename-${version}-r$revision.pkg"
# SetFile -a C "${1%/*}/$packagename-${version}-r$revision.pkg"
# rm -f tempicns.rsrc
# rm -rf "${pkgroot}/Icons/Icons"
# End

Archive Download the corresponding diff file

Revision: 1499