Chameleon Applications

Chameleon Applications Commit Details

Date:2011-07-16 02:37:23 (9 years 4 months ago)
Author:ErmaC
Commit:323
Parents: 322
Message:reupload the correct script and folder.
Changes:
A/branches/iFabio/Chameleon/package/Scripts/Advanced
A/branches/iFabio/Chameleon/package/Scripts/Advanced/UseMemDetect/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/GUI/postinstall
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/GenerateCStates
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/InstantMenu/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/Wait
A/branches/iFabio/Chameleon/package/Scripts/Advanced/BootBanner/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/ForceWake
A/branches/iFabio/Chameleon/package/Scripts/Advanced/UseAtiROM
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/arch/postinstall
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/GraphicsEnabler
A/branches/iFabio/Chameleon/package/Scripts/Advanced/QuietBoot
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/CSTUsingSystemIO
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/GeneratePStates
A/branches/iFabio/Chameleon/package/Scripts/Advanced/ForceHPET
A/branches/iFabio/Chameleon/package/Scripts/Advanced/UseNvidiaROM/postinstall
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/DropSSDT
A/branches/iFabio/Chameleon/package/Scripts/Advanced/GUI
A/branches/iFabio/Chameleon/package/Scripts/Advanced/UseMemDetect
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/InstantMenu
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/EthernetBuiltIn
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/RestartFix/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/BootBanner
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/arch
A/branches/iFabio/Chameleon/package/Scripts/Advanced/VBIOS/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/EHCIacquire/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/SMBIOSdefaults/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/LegacyLogo/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/Wake/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/UseNvidiaROM
A/branches/iFabio/Chameleon/package/Scripts/Advanced/UHCIreset/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/ShowInfo/postinstall
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/RestartFix
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/GenerateCStates/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/Wait/postinstall
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions
A/branches/iFabio/Chameleon/package/Scripts/Advanced/ForceWake/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/EHCIacquire
A/branches/iFabio/Chameleon/package/Scripts/Advanced/VBIOS
A/branches/iFabio/Chameleon/package/Scripts/Advanced/SMBIOSdefaults
A/branches/iFabio/Chameleon/package/Scripts/Advanced/UseAtiROM/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/LegacyLogo
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/GraphicsEnabler/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/Wake
A/branches/iFabio/Chameleon/package/Scripts/Advanced/QuietBoot/postinstall
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/UHCIreset
A/branches/iFabio/Chameleon/package/Scripts/Advanced/ForceHPET/postinstall
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/GeneratePStates/postinstall
A/branches/iFabio/Chameleon/package/Scripts/Advanced/ShowInfo
A/branches/iFabio/Chameleon/package/Scripts/BaseOptions/DropSSDT/postinstall

File differences

branches/iFabio/Chameleon/package/Scripts/Advanced/ForceHPET/postinstall
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
#!/usr/bin/python
# Script to add ForceHPET for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if ForceHPET has been written or not
ForceHPETCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written ForceHPET Yet
if "</dict>" in line and ForceHPETCheck == False:
line = " <key>ForceHPET</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
ForceHPETCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/EHCIacquire/postinstall
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
#!/usr/bin/python
# Script to add EHCIacquire for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if EHCIacquire has been written or not
EHCIacquireCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written EHCIacquire Yet
if "</dict>" in line and EHCIacquireCheck == False:
line = " <key>EHCIacquire</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
EHCIacquireCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/VBIOS/postinstall
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
#!/usr/bin/python
# Script to add VBIOS for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if VBIOS has been written or not
VBIOSCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written VBIOS Yet
if "</dict>" in line and VBIOSCheck == False:
line = " <key>VBIOS</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
VBIOSCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/GUI/postinstall
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
#!/usr/bin/python
# Script to add GUI for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if GUI has been written or not
GUICheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written GUI Yet
if "</dict>" in line and GUICheck == False:
line = " <key>GUI</key>\n"
line += " <string>No</string>\n"
line += "</dict>\n"
GUICheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/SMBIOSdefaults/postinstall
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
#!/usr/bin/python
# Script to add SMBIOSdefault for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if SMBIOSdefault has been written or not
SMBIOSdefaultCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written SMBIOSdefault Yet
if "</dict>" in line and SMBIOSdefaultCheck == False:
line = " <key>SMBIOSdefault</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
SMBIOSdefaultCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/UseMemDetect/postinstall
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
#!/usr/bin/python
# Script to add UseMemDetect for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if UseMemDetect has been written or not
UseMemDetectCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written UseMemDetect Yet
if "</dict>" in line and UseMemDetectCheck == False:
line = " <key>UseMemDetect</key>\n"
line += " <string>No</string>\n"
line += "</dict>\n"
UseMemDetectCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/LegacyLogo/postinstall
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
#!/usr/bin/python
# Script to add LegacyLogo for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if LegacyLogo has been written or not
LegacyLogoCheck = False
body = ""
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 += " <string>Yes</string>\n"
line += "</dict>\n"
LegacyLogoCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/Wake/postinstall
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
#!/usr/bin/python
# Script to add Wake for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if Wake has been written or not
WakeCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written Wake Yet
if "</dict>" in line and WakeCheck == False:
line = " <key>Wake</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
WakeCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/BootBanner/postinstall
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
#!/usr/bin/python
# Script to add BootBanner for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if BootBanner has been written or not
BootBannerCheck = False
body = ""
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 += " <string>No</string>\n"
line += "</dict>\n"
BootBannerCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/UHCIreset/postinstall
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
#!/usr/bin/python
# Script to add UHCIreset for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if UHCIreset has been written or not
UHCIresetCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written UHCIreset Yet
if "</dict>" in line and UHCIresetCheck == False:
line = " <key>UHCIreset</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
UHCIresetCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/ShowInfo/postinstall
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
#!/usr/bin/python
# Script to add ShowInfo for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if ShowInfo has been written or not
ShowInfoCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written ShowInfo Yet
if "</dict>" in line and ShowInfoCheck == False:
line = " <key>ShowInfo</key>\n"
line += " <string>No</string>\n"
line += "</dict>\n"
ShowInfoCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/Wait/postinstall
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
#!/usr/bin/python
# Script to add Wait for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if Wait has been written or not
WaitCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written Wait Yet
if "</dict>" in line and WaitCheck == False:
line = " <key>Wait</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
WaitCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/UseNvidiaROM/postinstall
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
#!/usr/bin/python
# Script to add UseNvidiaROM for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if UseNvidiaROM has been written or not
UseNvidiaROMCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written UseNvidiaROM Yet
if "</dict>" in line and UseNvidiaROMCheck == False:
line = " <key>UseNvidiaROM</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
UseNvidiaROMCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/ForceWake/postinstall
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
#!/usr/bin/python
# Script to add ForceWake for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if ForceWake has been written or not
ForceWakeCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written ForceWake Yet
if "</dict>" in line and ForceWakeCheck == False:
line = " <key>ForceWake</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
ForceWakeCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/UseAtiROM/postinstall
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
#!/usr/bin/python
# Script to add UseAtiROM for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if UseAtiROM has been written or not
UseAtiROMCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written UseAtiROM Yet
if "</dict>" in line and UseAtiROMCheck == False:
line = " <key>UseAtiROM</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
UseAtiROMCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/Advanced/QuietBoot/postinstall
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
#!/usr/bin/python
# Script to add QuietBoot for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if QuietBoot has been written or not
QuietBootCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written QuietBoot Yet
if "</dict>" in line and QuietBootCheck == False:
line = " <key>QuietBoot</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
QuietBootCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/BaseOptions/GenerateCStates/postinstall
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
#!/usr/bin/python
# Script to add GenerateCStates for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if GenerateCStates has been written or not
GenerateCStatesCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written GenerateCStates Yet
if "</dict>" in line and GenerateCStatesCheck == False:
line = " <key>GenerateCStates</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
GenerateCStatesCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/BaseOptions/DropSSDT/postinstall
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
#!/usr/bin/python
# Script to add DropSSDT for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if DropSSDT has been written or not
DropSSDTCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written DropSSDT Yet
if "</dict>" in line and DropSSDTCheck == False:
line = " <key>DropSSDT</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
DropSSDTCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall
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
#!/usr/bin/python
# Script to add EthernetBuiltIn for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if EthernetBuiltIn has been written or not
EthernetBuiltInCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written DropSSDT Yet
if "</dict>" in line and EthernetBuiltInCheck == False:
line = " <key>EthernetBuiltIn</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
EthernetBuiltInCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/BaseOptions/InstantMenu/postinstall
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
#!/usr/bin/python
# Script to add Instant Menu for Chameleon boot loaders
# Copyright (C) tonymacx86 LLC
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if Instant Menu has been written or not
InstantMenuCheck = False
body = ""
for line in infile:
# if Timeout is there, advance the next line to
# read past it, and then change the lines to read
# "<key>Instant Menu<\key>" and "<string>Yes</string>"
if "<key>Timeout</key>" in line:
line = infile.next()
line = " <key>Instant Menu</key>\n"
line += " <string>Yes</string>\n"
InstantMenuCheck = True
# if we finish the tags and haven't written Instant Menu Yet
if "</dict>" in line and InstantMenuCheck == False:
line = " <key>Instant Menu</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
InstantMenuCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/BaseOptions/GraphicsEnabler/postinstall
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
#!/usr/bin/python
# Script to add GraphicsEnabler for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if GraphicsEnabler has been written or not
GraphicsEnablerCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written GraphicsEnabler Yet
if "</dict>" in line and GraphicsEnablerCheck == False:
line = " <key>GraphicsEnabler</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
GraphicsEnablerCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/BaseOptions/RestartFix/postinstall
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
#!/usr/bin/python
# Script to add RestartFix for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if RestartFix has been written or not
RestartFixCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written RestartFix Yet
if "</dict>" in line and RestartFixCheck == False:
line = " <key>RestartFix</key>\n"
line += " <string>No</string>\n"
line += "</dict>\n"
RestartFixCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall
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
#!/usr/bin/python
# Script to add CSTUsingSystemIO for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if CSTUsingSystemIO has been written or not
CSTUsingSystemIOCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written CSTUsingSystemIO Yet
if "</dict>" in line and CSTUsingSystemIOCheck == False:
line = " <key>CSTUsingSystemIO</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
CSTUsingSystemIOCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/BaseOptions/arch/postinstall
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
#!/usr/bin/python
# Script to add arch for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if arch has been written or not
archCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written arch Yet
if "</dict>" in line and archCheck == False:
line = " <key>arch</key>\n"
line += " <string>i386</string>\n"
line += "</dict>\n"
archCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()
branches/iFabio/Chameleon/package/Scripts/BaseOptions/GeneratePStates/postinstall
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
#!/usr/bin/python
# Script to add GeneratePStates for Chameleon boot loaders
import sys
import os
vol = str(sys.argv[3])
boot = "/Extra/org.chameleon.Boot.plist"
plist = vol + boot
infile = open(plist, "r")
# check if GeneratePStates has been written or not
GeneratePStatesCheck = False
body = ""
for line in infile:
# if we finish the tags and haven't written GeneratePStates Yet
if "</dict>" in line and GeneratePStatesCheck == False:
line = " <key>GeneratePStates</key>\n"
line += " <string>Yes</string>\n"
line += "</dict>\n"
DropSSDTCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()

Archive Download the corresponding diff file

Revision: 323