Chameleon Applications

Chameleon Applications Commit Details

Date:2010-10-29 17:38:38 (10 years 5 months ago)
Author:blackosx
Commit:198
Parents: 197
Message:A tweak at the top and to the last steps of both changed scripts. I have just concentrated on getting the Chameleon booter files installed for now, i'll look more at the Extensions, Buildpackage and Resources once I'm happy with the main code.
Changes:
M/branches/blackosx/trunk/package/Scripts/HFS/postinstall
M/branches/blackosx/trunk/package/Scripts/Standard/postinstall

File differences

branches/blackosx/trunk/package/Scripts/HFS/postinstall
1313
1414
1515
16
16
1717
1818
1919
......
372372
373373
374374
375
376
377
378
379375
380376
381377
382
383
384
385
386
387
378
379
380
381
388382
389383
390384
391385
386
387
388
392389
393
394
395
396
397
398
399
390
391
392
393
394
395
400396
401
402
403
404
405
406
407
408
409
410
397
411398
412399
413400
start ()
{
# 1 volume
# $1 volume
osxvolume="${@}"
bootresources="${0%/*}"
#checkdiskmicrocode check - why check as it would have changed after writing boot0?
#checkdisksignature - This should still be the same, but if it's changed then it's too late - unless we backed it up?
#checkpartitionbootcode check - why check as it would have changed after writing boot0?
echo "==============================================="
echo "Check EFI Partition:"
echo "***************************"
echo "Skipping for now"
# Check efi partition
#if [ -d /Volumes/EFI ]; then
#umount -f /Volumes/EFI
#rm -R -f /Volumes/EFI
#fi
if [ -d /Volumes/EFI ]; then
umount -f /Volumes/EFI
rm -R -f /Volumes/EFI
fi
echo "-----------------------------------------------"
echo ""
echo ""
echo "==============================================="
echo "/Extra/Extensions Folder"
echo "*****************************************************"
if [ -d "${bootvolume}/Extra/Extensions" ]; then
echo "-----------------------------------------------"
echo "Duplicating Extra to ExtraBackup Folder, then removing Extra"
echo "-----------------------------------------------"
echo "Executing command: mkdir -p ${bootvolume}/Extra/Extensions"
#mkdir -p "${bootvolume}/ExtraBackup"
#cp -f -R "${bootvolume}/Extra" "${bootvolume}/ExtraBackup"
#rm -f -R "${bootvolume}/Extra"
echo "Duplicating Extra to ExtraBackup Folder"
mkdir -p "${bootvolume}/ExtraBackup"
cp -f -R "${bootvolume}/Extra" "${bootvolume}/ExtraBackup"
else
echo "Create /Extra/Extensions"
mkdir -p "${bootvolume}/Extra/Extensions"
fi
# unpack any existing Extensions.mkext already on the booter volume
if [ -f "${2}/ExtraBackup/Extensions.mkext" ]; then
echo "-----------------------------------------------"
echo "Mkext section"
echo "-----------------------------------------------"
echo "Executing command: mkextunpack -d ${2}/Extra/Extensions ${2}/ExtraBackup/Extensions.mkext"
#mkextunpack -d "${2}/.Chameleon/Extra/Extensions" "${2}/.Chameleon/ExtraBackup/Extensions.mkext"
echo "Executing command: rm -R -f ${2}/ExtraBackup/Extensions.mkext"
#rm -R -f "${2}/ExtraBackup/Extensions.mkext"
fi
# setup link for extras
#[ -h "${2}/.Chameleon" ] && unlink "${2}/.Chameleon"
branches/blackosx/trunk/package/Scripts/Standard/postinstall
1111
1212
1313
14
14
1515
1616
1717
......
332332
333333
334334
335
336
337
338
339
340335
341
342
343
344
345
346
347
348
349
350
351
352
336
337
353338
354
355
356
357
358
359
360
339
340
341
342
343
344
361345
362
363
364
365
366
367
368
369
370
371
346
372347
373348
374349
start ()
{
# 1 volume
# $1 volume
bootvolume="${@}"
echo "Volume is $bootvolume"
echo ""
#checkdiskmicrocode check - why check as it would have changed after writing boot0?
#checkdisksignature - This should still be the same, but if it's changed then it's too late - unless we backed it up?
#checkpartitionbootcode check - why check as it would have changed after writing boot0?
echo "==============================================="
echo "Check EFI Partition:"
echo "***************************"
echo "Skipping for now"
# Check efi partition
#if [ -d /Volumes/EFI ]; then
#umount -f /Volumes/EFI
#rm -R -f /Volumes/EFI
#fi
echo "-----------------------------------------------"
echo ""
echo ""
echo "/Extra/Extensions Folder"
echo "*****************************************************"
if [ -d "${bootvolume}/Extra/Extensions" ]; then
echo "-----------------------------------------------"
echo "Duplicating Extra to ExtraBackup Folder, then removing Extra"
echo "-----------------------------------------------"
echo "Executing command: mkdir -p ${bootvolume}/Extra/Extensions"
#mkdir -p "${bootvolume}/ExtraBackup"
#cp -f -R "${bootvolume}/Extra" "${bootvolume}/ExtraBackup"
#rm -f -R "${bootvolume}/Extra"
echo "Duplicating Extra to ExtraBackup Folder"
mkdir -p "${bootvolume}/ExtraBackup"
cp -f -R "${bootvolume}/Extra" "${bootvolume}/ExtraBackup"
else
echo "Create /Extra/Extensions"
mkdir -p "${bootvolume}/Extra/Extensions"
fi
# unpack any existing Extensions.mkext already on the booter volume
if [ -f "${2}/ExtraBackup/Extensions.mkext" ]; then
echo "-----------------------------------------------"
echo "Mkext section"
echo "-----------------------------------------------"
echo "Executing command: mkextunpack -d ${2}/Extra/Extensions ${2}/ExtraBackup/Extensions.mkext"
#mkextunpack -d "${2}/.Chameleon/Extra/Extensions" "${2}/.Chameleon/ExtraBackup/Extensions.mkext"
echo "Executing command: rm -R -f ${2}/ExtraBackup/Extensions.mkext"
#rm -R -f "${2}/ExtraBackup/Extensions.mkext"
fi
# setup link for extras
#[ -h "${2}/.Chameleon" ] && unlink "${2}/.Chameleon"

Archive Download the corresponding diff file

Revision: 198