Index: branches/blackosx/package/TO DO.txt
===================================================================
--- branches/blackosx/package/TO DO.txt (revision 0)
+++ branches/blackosx/package/TO DO.txt (revision 1575)
@@ -0,0 +1,8 @@
+TO DO
+
+* Fix - Keylayouts to match new style for building org.chameleon.boot.plist.
+* Check if boot options already exist before adding with plistbuddy.
+* Check also kernel flags before adding with plistbuddy
+* Add theme to org.chameleon.boot.plist? (Do what when more than one installed?)
+* Install log is so far ONLY generated when selecting to install Chameleon.
+* Include Boot options/kernel flags/keylayouts/themes to install log.
\ No newline at end of file
Index: branches/blackosx/package/Scripts/Advanced/ForceHPET/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/ForceHPET/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/ForceHPET/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add ForceHPET for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and ForceHPETCheck == False:
- line = " ForceHPET\n"
- line += " Yes\n"
- line += "\n"
- ForceHPETCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/ForceHPET/ForceHPET=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/ForceHPET/ForceHPET=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/UseKernelCache/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/UseKernelCache/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/UseKernelCache/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add UseKernelCache for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 UseKernelCache has been written or not
-UseKernelCacheCheck = False
-
-body = ""
-
-for line in infile:
- # if we finish the tags and haven't written UseKernelCache Yet
- if "" in line and UseKernelCacheCheck == False:
- line = " UseKernelCache\n"
- line += " Yes\n"
- line += "\n"
- UseKernelCacheCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/UseKernelCache/UseKernelCache=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/UseKernelCache/UseKernelCache=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/EHCIacquire/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/EHCIacquire/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/EHCIacquire/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add EHCIacquire for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and EHCIacquireCheck == False:
- line = " EHCIacquire\n"
- line += " Yes\n"
- line += "\n"
- EHCIacquireCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/EHCIacquire/EHCIacquire=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/EHCIacquire/EHCIacquire=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/VBIOS/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/VBIOS/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/VBIOS/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add VBIOS for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and VBIOSCheck == False:
- line = " VBIOS\n"
- line += " Yes\n"
- line += "\n"
- VBIOSCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/VBIOS/VBIOS=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/VBIOS/VBIOS=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/GUI/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/GUI/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/GUI/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add GUI for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and GUICheck == False:
- line = " GUI\n"
- line += " No\n"
- line += "\n"
- GUICheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/GUI/GUI=No
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/GUI/GUI=No
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/SMBIOSdefaults/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/SMBIOSdefaults/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/SMBIOSdefaults/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add SMBIOSdefault for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and SMBIOSdefaultCheck == False:
- line = " SMBIOSdefault\n"
- line += " Yes\n"
- line += "\n"
- SMBIOSdefaultCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/SMBIOSdefaults/SMBIOSdefault=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/SMBIOSdefaults/SMBIOSdefault=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/UseMemDetect/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/UseMemDetect/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/UseMemDetect/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add UseMemDetect for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and UseMemDetectCheck == False:
- line = " UseMemDetect\n"
- line += " No\n"
- line += "\n"
- UseMemDetectCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/UseMemDetect/UseMemDetect=No
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/UseMemDetect/UseMemDetect=No
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/LegacyLogo/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/LegacyLogo/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/LegacyLogo/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add LegacyLogo for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and LegacyLogoCheck == False:
- line = " Legacy Logo\n"
- line += " Yes\n"
- line += "\n"
- LegacyLogoCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/LegacyLogo/Legacy Logo=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/LegacyLogo/Legacy Logo=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/Wake/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/Wake/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/Wake/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Wake for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and WakeCheck == False:
- line = " Wake\n"
- line += " Yes\n"
- line += "\n"
- WakeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/Wake/Wake=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/Wake/Wake=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/BootBanner/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/BootBanner/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/BootBanner/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add BootBanner for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and BootBannerCheck == False:
- line = " Boot Banner\n"
- line += " No\n"
- line += "\n"
- BootBannerCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/BootBanner/Boot Banner=No
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/BootBanner/Boot Banner=No
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/Npci/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/Npci/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/Npci/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Kernel Flags = npci=0x2000 for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 Kernel Flags has been written or not
-KernelFlagsCheck = False
-
-body = ""
-
-for line in infile:
- # if we finish the tags and haven't written Kernel Flags Yet
- if "" in line and KernelFlagsCheck == False:
- line = " Kernel Flags\n"
- line += " npci=0x2000\n"
- line += "\n"
- KernelFlagsCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/Npci/KF npci=0x2000
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/Npci/KF npci=0x2000
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/UHCIreset/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/UHCIreset/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/UHCIreset/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add UHCIreset for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and UHCIresetCheck == False:
- line = " UHCIreset\n"
- line += " Yes\n"
- line += "\n"
- UHCIresetCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/UHCIreset/UHCIreset=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/UHCIreset/UHCIreset=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/ShowInfo/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/ShowInfo/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/ShowInfo/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add ShowInfo for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and ShowInfoCheck == False:
- line = " ShowInfo\n"
- line += " No\n"
- line += "\n"
- ShowInfoCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/ShowInfo/ShowInfo=No
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/ShowInfo/ShowInfo=No
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/Wait/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/Wait/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/Wait/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Wait for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and WaitCheck == False:
- line = " Wait\n"
- line += " Yes\n"
- line += "\n"
- WaitCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/Wait/Wait=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/Wait/Wait=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/UseNvidiaROM/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/UseNvidiaROM/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/UseNvidiaROM/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add UseNvidiaROM for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and UseNvidiaROMCheck == False:
- line = " UseNvidiaROM\n"
- line += " Yes\n"
- line += "\n"
- UseNvidiaROMCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/UseNvidiaROM/UseNvidiaROM=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/UseNvidiaROM/UseNvidiaROM=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/ForceWake/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/ForceWake/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/ForceWake/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add ForceWake for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and ForceWakeCheck == False:
- line = " ForceWake\n"
- line += " Yes\n"
- line += "\n"
- ForceWakeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/ForceWake/ForceWake=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/ForceWake/ForceWake=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/UseAtiROM/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/UseAtiROM/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/UseAtiROM/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add UseAtiROM for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and UseAtiROMCheck == False:
- line = " UseAtiROM\n"
- line += " Yes\n"
- line += "\n"
- UseAtiROMCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/UseAtiROM/UseAtiROM=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/UseAtiROM/UseAtiROM=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Advanced/QuietBoot/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Advanced/QuietBoot/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Advanced/QuietBoot/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add QuietBoot for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and QuietBootCheck == False:
- line = " QuietBoot\n"
- line += " Yes\n"
- line += "\n"
- QuietBootCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Advanced/QuietBoot/QuietBoot=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/Advanced/QuietBoot/QuietBoot=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Post/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Post/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Post/postinstall (revision 1575)
@@ -33,22 +33,77 @@
dest_vol="$3"
fi
-chamTemp="usr/local/chamTemp" #blackosx added
+# set temporary directory
+chamTemp="$dest_vol/usr/local/chamTemp" #blackosx added
-# Extra folder now resides in /$chamTemp.
-# Copy /$chamTemp/Extra to correct location.
+# Check for temporary directory/Extra folder.
+if [ ! -d "$chamTemp"/Extra ]; then
+ mkdir "$chamTemp"/Extra
+fi
+
+
+# ---------------------------------------------
+# Blackosx - Build boot options / Kernel Flags.
+# NEEDS MORE WORK!!!!!!!!!!!!
+# ---------------------------------------------
+# All options selected are now dummy files with
+# the filename of the option and value residing
+# in /usr/local/chamTemp/options/
+# for example. Boot Banner=Yes
+
+# Create template for org.chameleon.Boot.plist"
+tempOCBP="$chamTemp"/Extra/org.chameleon.Boot.plist
+cp "$dest_vol"/Library/Preferences/SystemConfiguration/com.apple.Boot.plist "$tempOCBP"
+
+# Read list of all boot options the user added.
+arrayCount=0
+find ${chamTemp}/options | while read FILE
+do
+ options[arrayCount]="${FILE##*/}"
+ keyRead="${options[$arrayCount]%=*}"
+
+ value="${options[$arrayCount]#*=}"
+
+ # Check keyRead for 'KF' at beginning to
+ # indicate that should be a kernel flag
+ if [ ${keyRead:0:2} = "KF" ];then
+ kernelflag=${keyRead#*F }=$value
+
+ # write value to org.chameleon.Boot.plist
+ # but skip first one as that will be 'options'
+ if [ $arrayCount -gt 0 ]; then
+ sudo /usr/libexec/plistbuddy -c "Add :Kernel\ Flags string $kernelflag" "$tempOCBP"
+ fi
+ else
+ # escape any spaces
+ keyToUse=$( echo $keyRead | sed 's/ /\\ /g' )
+
+ # write value to org.chameleon.Boot.plist
+ # but skip first one as that will be 'options'
+ if [ $arrayCount -gt 0 ]; then
+ sudo /usr/libexec/plistbuddy -c "Add :$keyToUse string $value" "$tempOCBP"
+ fi
+ fi
+
+ arrayCount=$(( ${arrayCount} + 1 ))
+done
+
+
+# ---------------------------------------------
+# Copy temp Extra folder to target destination
+# ---------------------------------------------
+# Extra folder now resides in /usr/local/chamTemp/
+# Copy /usr/local/chamTemp/Extra to correct location.
if [ ! -f "$dest_vol"/.ChameleonEFI ]; then
- echo "Copying $dest_vol/$chamTemp/Extra/* $dest_vol/Extra"
if [ ! -f "$dest_vol"/Extra ]; then
mkdir "$dest_vol"/Extra
fi
- cp -R "$dest_vol"/$chamTemp/Extra/* "$dest_vol"/Extra
+ cp -R "$chamTemp"/Extra/* "$dest_vol"/Extra
else
- echo "Copying $dest_vol/$chamTemp/Extra/* $/Volumes/EFI/Extra"
if [ ! -f "/Volumes/EFI/Extra" ]; then
mkdir "/Volumes/EFI/Extra"
fi
- cp -R "$dest_vol"/$chamTemp/Extra/* /Volumes/EFI/Extra
+ cp -R "$chamTemp"/Extra/* /Volumes/EFI/Extra
# unmount /Volumes/EFI
attempts=1
@@ -57,8 +112,14 @@
umount -f $( df | grep EFI | awk '{print $1}' )
attempts=$(( ${attempts} + 1 ))
done
+fi
- # Remove /.ChameleonEFI file
+
+# ---------------------------------------------
+# Cleanup
+# ---------------------------------------------
+# Remove /.ChameleonEFI file
+if [ -f "$dest_vol"/.ChameleonEFI ]; then
echo "Removing /.ChameleonEFI file"
rm "$dest_vol"/.ChameleonEFI
fi
@@ -70,8 +131,8 @@
fi
# delete the temporary Chameleon folder
-echo "Removing $dest_vol/$chamTemp file"
-rm -rf "$dest_vol/$chamTemp"
+echo "Removing $chamTemp file"
+rm -rf "$chamTemp"
echo "Done..."
\ No newline at end of file
Index: branches/blackosx/package/Scripts/BaseOptions/GenerateCStates/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/GenerateCStates/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/GenerateCStates/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add GenerateCStates for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and GenerateCStatesCheck == False:
- line = " GenerateCStates\n"
- line += " Yes\n"
- line += "\n"
- GenerateCStatesCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/GenerateCStates/GenerateCStates=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/GenerateCStates/GenerateCStates=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/DropSSDT/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/DropSSDT/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/DropSSDT/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add DropSSDT for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and DropSSDTCheck == False:
- line = " DropSSDT\n"
- line += " Yes\n"
- line += "\n"
- DropSSDTCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/DropSSDT/DropSSDT=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/DropSSDT/DropSSDT=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/EthernetBuiltIn/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add EthernetBuiltIn for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and EthernetBuiltInCheck == False:
- line = " EthernetBuiltIn\n"
- line += " Yes\n"
- line += "\n"
- EthernetBuiltInCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/EthernetBuiltIn/EthernetBuiltIn=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/EthernetBuiltIn/EthernetBuiltIn=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/InstantMenu/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/InstantMenu/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/InstantMenu/postinstall (revision 1575)
@@ -1,49 +0,0 @@
-#!/usr/bin/python
-# Script to add Instant Menu for Chameleon boot loaders
-# Copyright (C) tonymacx86 LLC
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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
- # "Instant Menu<\key>" and "Yes"
- if "Timeout" in line:
- line = infile.next()
- line = " Instant Menu\n"
- line += " Yes\n"
- InstantMenuCheck = True
-
- # if we finish the tags and haven't written Instant Menu Yet
- if "" in line and InstantMenuCheck == False:
- line = " Instant Menu\n"
- line += " Yes\n"
- line += "\n"
- InstantMenuCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/InstantMenu/Instant Menu=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/InstantMenu/Instant Menu=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/GraphicsEnabler/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/GraphicsEnabler/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/GraphicsEnabler/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add GraphicsEnabler for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and GraphicsEnablerCheck == False:
- line = " GraphicsEnabler\n"
- line += " Yes\n"
- line += "\n"
- GraphicsEnablerCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/GraphicsEnabler/GraphicsEnabler=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/GraphicsEnabler/GraphicsEnabler=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/RestartFix/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/RestartFix/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/RestartFix/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add RestartFix for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and RestartFixCheck == False:
- line = " RestartFix\n"
- line += " No\n"
- line += "\n"
- RestartFixCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/RestartFix/RestartFix=No
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/RestartFix/RestartFix=No
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/CSTUsingSystemIO/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add CSTUsingSystemIO for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and CSTUsingSystemIOCheck == False:
- line = " CSTUsingSystemIO\n"
- line += " Yes\n"
- line += "\n"
- CSTUsingSystemIOCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/CSTUsingSystemIO/CSTUsingSystemIO=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/CSTUsingSystemIO/CSTUsingSystemIO=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/EnableC2State/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/EnableC2State/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/EnableC2State/postinstall (revision 1575)
@@ -1,38 +0,0 @@
-#!/usr/bin/python
-# Script to add EnableC2State for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 EnableC2State has been written or not
-EnableC2StateCheck = False
-
-body = ""
-
-for line in infile:
- # if we finish the tags and haven't written EnableC2State Yet
- if "" in line and EnableC2StateCheck == False:
- line = " EnableC2State\n"
- line += " Yes\n"
- line += "\n"
- EnableC2StateCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/EnableC2State/EnableC2State=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/EnableC2State/EnableC2State=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/EnableC3State/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/EnableC3State/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/EnableC3State/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add EnableC3State for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 EnableC3State has been written or not
-EnableC3StateCheck = False
-
-body = ""
-
-for line in infile:
- # if we finish the tags and haven't written EnableC3State Yet
- if "" in line and EnableC3StateCheck == False:
- line = " EnableC3State\n"
- line += " Yes\n"
- line += "\n"
- EnableC3StateCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/EnableC3State/EnableC3State=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/EnableC3State/EnableC3State=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/arch/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/arch/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/arch/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add arch for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and archCheck == False:
- line = " arch\n"
- line += " i386\n"
- line += "\n"
- archCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/arch/arch=i386
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/arch/arch=i386
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/EnableC4State/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/EnableC4State/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/EnableC4State/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add EnableC4State for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 EnableC4State has been written or not
-EnableC4StateCheck = False
-
-body = ""
-
-for line in infile:
- # if we finish the tags and haven't written EnableC4State Yet
- if "" in line and EnableC4StateCheck == False:
- line = " EnableC4State\n"
- line += " Yes\n"
- line += "\n"
- EnableC4StateCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/EnableC4State/EnableC4State=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/EnableC4State/EnableC4State=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/BaseOptions/GeneratePStates/postinstall
===================================================================
--- branches/blackosx/package/Scripts/BaseOptions/GeneratePStates/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/BaseOptions/GeneratePStates/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add GeneratePStates for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 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 "" in line and GeneratePStatesCheck == False:
- line = " GeneratePStates\n"
- line += " Yes\n"
- line += "\n"
- DropSSDTCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/BaseOptions/GeneratePStates/GeneratePStates=Yes
===================================================================
Property changes on: branches/blackosx/package/Scripts/BaseOptions/GeneratePStates/GeneratePStates=Yes
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1024x768x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1024x768x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1024x768x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1024x768x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1024x768x32/Graphics Mode=1024x768x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1024x768x32/Graphics Mode=1024x768x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1024x600x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1024x600x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1024x600x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1024x600x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1024x600x32/Graphics Mode=1024x600x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1024x600x32/Graphics Mode=1024x600x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1920x1200x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1920x1200x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1920x1200x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1920x1200x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1920x1200x32/Graphics Mode=1920x1200x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1920x1200x32/Graphics Mode=1920x1200x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1280x768x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1280x768x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1280x768x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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()
Index: branches/blackosx/package/Scripts/Resolutions/1280x768x32/Graphics Mode=1280x768x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1280x768x32/Graphics Mode=1280x768x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1600x900x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1600x900x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1600x900x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1600x900x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1600x900x32/Graphics Mode=1600x900x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1600x900x32/Graphics Mode=1600x900x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1280x1024x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1280x1024x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1280x1024x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1280x1024x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1280x1024x32/Graphics Mode=1280x1024x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1280x1024x32/Graphics Mode=1280x1024x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1440x900x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1440x900x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1440x900x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1440x900x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1440x900x32/Graphics Mode=1440x900x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1440x900x32/Graphics Mode=1440x900x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1280x800x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1280x800x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1280x800x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1280x800x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1280x800x32/Graphics Mode=1280x800x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1280x800x32/Graphics Mode=1280x800x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1680x1050x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1680x1050x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1680x1050x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1680x1050x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1680x1050x32/Graphics Mode=1680x1050x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1680x1050x32/Graphics Mode=1680x1050x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1920x1080x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1920x1080x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1920x1080x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1920x1080x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1920x1080x32/Graphics Mode=1920x1080x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1920x1080x32/Graphics Mode=1920x1080x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Scripts/Resolutions/1280x960x32/postinstall
===================================================================
--- branches/blackosx/package/Scripts/Resolutions/1280x960x32/postinstall (revision 1574)
+++ branches/blackosx/package/Scripts/Resolutions/1280x960x32/postinstall (revision 1575)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add Graphics_Mode for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/usr/local/chamTemp/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/usr/local/chamTemp/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 += " 1280x960x32\n"
- line += "\n"
- Graphics_ModeCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/blackosx/package/Scripts/Resolutions/1280x960x32/Graphics Mode=1280x960x32
===================================================================
Property changes on: branches/blackosx/package/Scripts/Resolutions/1280x960x32/Graphics Mode=1280x960x32
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/buildpkg.sh
===================================================================
--- branches/blackosx/package/buildpkg.sh (revision 1574)
+++ branches/blackosx/package/buildpkg.sh (revision 1575)
@@ -206,10 +206,11 @@
for (( i = 0 ; i < ${#options[@]} ; i++ ))
do
mkdir -p "${1}/${options[$i]##*/}/Root"
- mkdir -p "${1}/${options[$i]##*/}/Scripts"
- ditto --noextattr --noqtn "${options[$i]}/postinstall" "${1}/${options[$i]##*/}/Scripts/postinstall"
+ #mkdir -p "${1}/${options[$i]##*/}/Scripts"
+ #ditto --noextattr --noqtn "${options[$i]}/postinstall" "${1}/${options[$i]##*/}/Scripts/postinstall"
+ cp "${options[$i]}"/* "${1}/${options[$i]##*/}/Root"
echo " [BUILD] ${options[$i]##*/} "
- buildpackage "${1}/${options[$i]##*/}" "/" "" "start_selected=\"false\"" >/dev/null 2>&1
+ buildpackage "${1}/${options[$i]##*/}" "/$chamTemp/options" "" "start_selected=\"false\"" >/dev/null 2>&1
done
# End build base options packages
@@ -243,10 +244,11 @@
for (( i = 0 ; i < ${#resolutions[@]} ; i++ ))
do
mkdir -p "${1}/${resolutions[$i]##*/}/Root/"
- mkdir -p "${1}/${resolutions[$i]##*/}/Scripts/"
- ditto --noextattr --noqtn "${resolutions[$i]}/postinstall" "${1}/${resolutions[$i]##*/}/Scripts/postinstall"
+ #mkdir -p "${1}/${resolutions[$i]##*/}/Scripts/"
+ #ditto --noextattr --noqtn "${resolutions[$i]}/postinstall" "${1}/${resolutions[$i]##*/}/Scripts/postinstall"
+ cp "${resolutions[$i]}"/* "${1}/${resolutions[$i]##*/}/Root"
echo " [BUILD] ${resolutions[$i]##*/} "
- buildpackage "${1}/${resolutions[$i]##*/}" "/" "" "start_selected=\"false\"" >/dev/null 2>&1
+ buildpackage "${1}/${resolutions[$i]##*/}" "/$chamTemp/options" "" "start_selected=\"false\"" >/dev/null 2>&1
done
((xmlindent--))
@@ -264,10 +266,11 @@
for (( i = 0 ; i < ${#optionsadv[@]} ; i++ ))
do
mkdir -p "${1}/${optionsadv[$i]##*/}/Root"
- mkdir -p "${1}/${optionsadv[$i]##*/}/Scripts"
- ditto --noextattr --noqtn "${optionsadv[$i]}/postinstall" "${1}/${optionsadv[$i]##*/}/Scripts/postinstall"
+ #mkdir -p "${1}/${optionsadv[$i]##*/}/Scripts"
+ #ditto --noextattr --noqtn "${optionsadv[$i]}/postinstall" "${1}/${optionsadv[$i]##*/}/Scripts/postinstall"
+ cp "${optionsadv[$i]}"/* "${1}/${optionsadv[$i]##*/}/Root"
echo " [BUILD] ${optionsadv[$i]##*/} "
- buildpackage "${1}/${optionsadv[$i]##*/}" "/" "" "start_selected=\"false\"" >/dev/null 2>&1
+ buildpackage "${1}/${optionsadv[$i]##*/}" "/$chamTemp/options" "" "start_selected=\"false\"" >/dev/null 2>&1
done
((xmlindent--))
@@ -320,7 +323,7 @@
# clean up
- rm -R -f "${1}"
+ #rm -R -f "${1}"
}
@@ -361,7 +364,7 @@
header+="auth=\"root\">\n"
header+="\t\n"
- rm -R -f "${1}/Temp"
+ #rm -R -f "${1}/Temp"
[ -d "${1}/Temp" ] || mkdir -m 777 "${1}/Temp"
[ -d "${1}/Root" ] && mkbom "${1}/Root" "${1}/Temp/Bom"
@@ -398,7 +401,7 @@
fi
choices[$((choicescount++))]="\n\t#${packagename// /}.pkg\n\n"
- rm -R -f "${1}"
+ #rm -R -f "${1}"
fi
}