Index: branches/blackosx/package/Scripts/Keymaps/postinstall.in =================================================================== --- branches/blackosx/package/Scripts/Keymaps/postinstall.in (revision 1555) +++ branches/blackosx/package/Scripts/Keymaps/postinstall.in (revision 1556) @@ -1,46 +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]) - -# Check for .ChameleonEFI file at root of target volume -# to indicate user wants to install to EFI system partition. -espfile = "/.ChameleonEFI" -espvol = vol + espfile -if os.path.exists(espvol): - if not os.path.exists('/Volumes/EFI/Extra'): - os.makedirs('/Volumes/EFI/Extra') - - plist = "/Volumes/EFI/Extra/org.chameleon.Boot.plist" -else: - 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 -KeyLayoutCheck = False - -body = "" - -for line in infile: - # if we finish the tags and haven't written KeyLayout Yet - if "" in line and KeyLayoutCheck == False: - line = " KeyLayout\n" - line += " @@KEYMAP@@\n" - line += "\n" - KeyLayoutCheck = True - - body += line - -infile.close() - -outfile = open(plist, "w") -outfile.write(body) -outfile.close() Index: branches/blackosx/package/Scripts/Keymaps/postinstall =================================================================== --- branches/blackosx/package/Scripts/Keymaps/postinstall (revision 0) +++ branches/blackosx/package/Scripts/Keymaps/postinstall (revision 1556) @@ -0,0 +1,46 @@ +#!/usr/bin/python +# Script to add Graphics_Mode for Chameleon boot loaders + +import sys +import os +import shutil + +vol = str(sys.argv[3]) + +# Check for .ChameleonEFI file at root of target volume +# to indicate user wants to install to EFI system partition. +espfile = "/.ChameleonEFI" +espvol = vol + espfile +if os.path.exists(espvol): + if not os.path.exists('/Volumes/EFI/Extra'): + os.makedirs('/Volumes/EFI/Extra') + + plist = "/Volumes/EFI/Extra/org.chameleon.Boot.plist" +else: + 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 +KeyLayoutCheck = False + +body = "" + +for line in infile: + # if we finish the tags and haven't written KeyLayout Yet + if "" in line and KeyLayoutCheck == False: + line = " KeyLayout\n" + line += " @@KEYMAP@@\n" + line += "\n" + KeyLayoutCheck = True + + body += line + +infile.close() + +outfile = open(plist, "w") +outfile.write(body) +outfile.close() Property changes on: branches/blackosx/package/Scripts/Keymaps/postinstall ___________________________________________________________________ Added: svn:executable + *