Index: trunk/package/Scripts/Resolutions/1280x768x32/postinstall
===================================================================
--- trunk/package/Scripts/Resolutions/1280x768x32/postinstall (revision 0)
+++ trunk/package/Scripts/Resolutions/1280x768x32/postinstall (revision 1552)
@@ -0,0 +1,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 "" in line and Graphics_ModeCheck == False:
+ line = " Graphics Mode\n"
+ line += " 1280x768x32\n"
+ line += "\n"
+ Graphics_ModeCheck = True
+
+ body += line
+
+infile.close()
+
+outfile = open(plist, "w")
+outfile.write(body)
+outfile.close()
Property changes on: trunk/package/Scripts/Resolutions/1280x768x32/postinstall
___________________________________________________________________
Added: svn:executable
+ *