Chameleon

Chameleon Commit Details

Date:2011-09-21 03:40:37 (7 years 9 months ago)
Author:ErmaC
Commit:1552
Parents: 1551
Message:forgot the 1280x768 folder in previusly commit (1551). added now.
Changes:
A/trunk/package/Scripts/Resolutions/1280x768x32/postinstall
A/trunk/package/Scripts/Resolutions/1280x768x32

File differences

trunk/package/Scripts/Resolutions/1280x768x32/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
#!/usr/bin/python
# Script to add Graphics_Mode for Chameleon boot loaders
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
body = ""
for line in infile:
# if we finish the tags and haven't written Graphics_Mode Yet
if "</dict>" in line and Graphics_ModeCheck == False:
line = " <key>Graphics Mode</key>\n"
line += " <string>1280x768x32</string>\n"
line += "</dict>\n"
Graphics_ModeCheck = True
body += line
infile.close()
outfile = open(plist, "w")
outfile.write(body)
outfile.close()

Archive Download the corresponding diff file

Revision: 1552