Chameleon Applications

Chameleon Applications Commit Details

Date:2010-01-26 22:21:14 (14 years 2 months ago)
Author:Rekursor
Commit:66
Parents: 65
Message:Added missing resource files
Changes:
A/trunk/ChameleonPrefPane/Resources/getDevProp.sh
A/trunk/ChameleonPrefPane/Resources/gfxutil
A/trunk/ChameleonPrefPane/Resources/cdBootCreator.sh

File differences

trunk/ChameleonPrefPane/Resources/cdBootCreator.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
#!/bin/sh
# Copyright 2009 org.darwinx86.app. All rights reserved.
# Directories
extra=/tmp/isodir
mydir=`dirname $0`
tempDir=/tmp
finaldir=~/Desktop
isodir=/tmp/newiso
extradir=/tmp/newiso/Extra
preDir=/tmp/newiso/Extra/Preboot/
prebootDir=/tmp/newiso/Extra/Preboot/Extra
backDir=~/Desktop/Lizard
bkpdir=~/Desktop/Lizard/Previous-dmg
echo "Starting script..."
#errors
if ([ ! -f $extra/Extensions.mkext ] && [ ! -d $extra/Extensions ]);then
echo "- Error: no Extensions.mkext or Extensions folder. One of them is required"
echo " ------------------------"
exit
fi
if [ ! -f $extra/com.apple.Boot.plist ];then
echo "- Error: no com.apple.boot.plist found. File required"
echo " ------------------------"
exit
fi
if [ ! -f $extra/cdboot ];then
echo "- Error: no cdboot found. File required"
echo " ------------------------"
exit
fi
# Create a work directory
echo " - temps folders created"
echo " - Checking files"
#copy Extra files to temp directory
if [ -f $extra/cdboot ];then
cp -R $extra/cdboot $isodir
fi
if [ -f $extra/dsdt.aml ];then
cp -R $extra/dsdt.aml $prebootDir
fi
if [ -f $extra/DSDT.aml ];then
cp -R $extra/DSDT.aml $prebootDir
fi
if [ -f $extra/NVIDIA.ROM ];then
cp -R $extra/NVIDIA.ROM $prebootDir
fi
if [ -f $extra/smbios.plist ];then
cp -R $extra/smbios.plist $prebootDir
fi
if [ -f $extra/Extensions.mkext ];then
cp -R $extra/Extensions.mkext $prebootDir
fi
if [ -d $extra/Extensions ];then
cp -Rp $extra/Extensions $prebootDir
fi
if [ -f $extra/com.apple.Boot.plist ];then
cp -R $extra/com.apple.Boot.plist $prebootDir
fi
if [ -f $tempDir/com.apple.Boot.plist ];then
cp -R $tempDir/com.apple.Boot.plist $extradir
fi
echo "- Files copied in temp folder"
# ramdisk creator
hdiutil create -srcfolder $preDir/ -layout GPTSPUD -fs HFS+ -format UDRW -volname Preboot $extradir/Preboot.dmg
rm -R $preDir
echo " - ram disk created"
# boot cd creator
hdiutil makehybrid -o BootCD.iso $isodir/ -iso -hfs -joliet -eltorito-boot $isodir/cdboot -no-emul-boot -hfs-volume-name "Boot CD" -joliet-volume-name "Boot CD"
echo " - hybrid image created"
# Create output and backup directories
if [ -f $finaldir/BootCD.iso ];then
if [ ! -d $bkpdir ];then
mkdir $backDir
mkdir $bkpdir
echo " - backup folder created"
fi
mv -f $finaldir/BootCD.iso $bkpdir/BootCd-$(date +"%d-%y-%Hh%M").iso
echo " - previous ISO moved into backup folder"
fi
mv BootCD.iso $finaldir
echo " - ISO moved on desktop"
# cleanup
echo " - Perform cleaning"
echo " - ISO created succefully"
echo " ------------------------"
exit 0
trunk/ChameleonPrefPane/Resources/getDevProp.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
#!/bin/sh
# getDevProp.sh
# smbios-cham
#
# Created by ronan & thomas on 12/08/09.
# Copyright 2009 org.darwinx86.app. All rights reserved.
# adapted for Chameleon control panel use by Rekursor
#
# Directories
cdir=`dirname $0`
tmpDir=/tmp/Chameleon
dmpdir=${tmpDir}/devprop
# Create a dump directory
if [[ ! -d $dmpdir ]];then
mkdir $dmpdir
fi
if [[ ! -d $tmpDir ]];then
mkdir $tmpDir
fi
# Dump Device properties
ioreg -lw0 -p IODeviceTree -n efi -r -x |grep device-properties | sed 's/.*<//;s/>.*//;' | cat > $dmpdir/chameleon-devprop.hex
$cdir/gfxutil -s -n -i hex -o xml $dmpdir/chameleon-devprop.hex $dmpdir/chameleon-devprop.plist
# Splash the result up !!
open $dmpdir/chameleon-devprop.plist
rm -r $tmpdir
#end
#echo $?

Archive Download the corresponding diff file

Revision: 66