Index: branches/blackosx/trunk/package/Distribution =================================================================== --- branches/blackosx/trunk/package/Distribution (revision 214) +++ branches/blackosx/trunk/package/Distribution (revision 215) @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - Chameleon_title - - Index: branches/blackosx/trunk/package/fdisk =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: branches/blackosx/trunk/package/buildpkg =================================================================== --- branches/blackosx/trunk/package/buildpkg (revision 214) +++ branches/blackosx/trunk/package/buildpkg (revision 215) @@ -1,396 +0,0 @@ -#!/bin/bash - -# $1 Path to store built package - -packagesidentity="org.chameleon" - -packagename="Chameleon" - -pkgroot="${0%/*}" - -#version=$( grep I386BOOT_CHAMELEONVERSION sym/i386/vers.h | awk '{ print $3 }' | tr -d '\"' ) -version=$( cat version ) -stage=${version##*-} -revision=$( grep I386BOOT_CHAMELEONREVISION sym/i386/vers.h | awk '{ print $3 }' | tr -d '\"' ) -builddate=$( grep I386BOOT_BUILDDATE sym/i386/vers.h | awk '{ print $3,$4 }' | tr -d '\"' ) -timestamp=$( date -j -f "%Y-%m-%d %H:%M:%S" "${builddate}" "+%s" ) - -distributioncount=0 -xmlindent=0 - -indent[0]="\t" -indent[1]="\t\t" -indent[2]="\t\t\t" -indent[3]="\t\t\t\t" - -main () -{ - -# clean up the destination path - -rm -R -f "${1}" - -echo "Building $packagename Install Package v${version%%-*} $stage r$revision $builddate" - -outline[$((outlinecount++))]="${indent[$xmlindent]}" - -# build core package - - ((xmlindent++)) - packagesidentity="org.chameleon" - mkdir -p ${1}/Core/Root/usr/sbin -# mkdir -p ${1}/Core/Root/usr/local/bin - mkdir -p ${1}/Core/Root/usr/standalone/i386 -# mkdir -p ${1}/Core/Root/Extra - cp -f ${1%/*}/i386/boot ${1}/Core/Root/usr/standalone/i386 - cp -f ${1%/*}/i386/boot0 ${1}/Core/Root/usr/standalone/i386 - cp -f ${1%/*}/i386/boot0hfs ${1}/Core/Root/usr/standalone/i386 - cp -f ${1%/*}/i386/boot1f32 ${1}/Core/Root/usr/standalone/i386 - cp -f ${1%/*}/i386/boot1h ${1}/Core/Root/usr/standalone/i386 - cp -f ${1%/*}/i386/boot1he ${1}/Core/Root/usr/standalone/i386 - cp -f ${1%/*}/i386/boot1hp ${1}/Core/Root/usr/standalone/i386 - cp -f ${1%/*}/i386/cdboot ${1}/Core/Root/usr/standalone/i386 - cp -f ${1%/*}/i386/chain0 ${1}/Core/Root/usr/standalone/i386 - fixperms "${1}/Core/Root/" -# cp -Rf ${pkgroot}/Configuration/Chameleon.prefPane ${1}/Core/Root/Library/PreferencePanes -# cp -f ${pkgroot}/Configuration/smbios.plist ${1}/Core/Root/Extra - cp -f ${pkgroot}/fdisk440 ${1}/Core/Root/usr/sbin - cp -f ${1%/*}/i386/bdmesg ${1}/Core/Root/usr/sbin - local coresize=$( du -hkc "${1}/Core/Root" | tail -n1 | awk {'print $1'} ) - echo "Building core package" - buildpackage "${1}/Core" "/" "0" "start_visible=\"false\" start_selected=\"true\"" -# buildpackage "${1}/Core" "/" "0" "start_visible=\"true\" start_selected=\"true\"" - - -# build Chameleon package - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - choices[$((choicescount++))]="\n\n" - - # build standard package - mkdir -p ${1}/Standard/Root - mkdir -p ${1}/Standard/Scripts/Tools - cp -f ${pkgroot}/Scripts/Standard/* ${1}/Standard/Scripts - ditto --arch i386 `which SetFile` ${1}/Standard/Scripts/Tools/SetFile - echo "Building standard package" - buildpackage "${1}/Standard" "/" "${coresize}" "start_enabled=\"true\" start_selected=\"upgrade_allowed()\" selected=\"exclusive(choices['EFI']) && exclusive(choices['noboot'])\"" - # End build standard package - - # build efi package - mkdir -p ${1}/EFI/Root - mkdir -p ${1}/EFI/Scripts/Tools - cp -f ${pkgroot}/Scripts/EFI/* ${1}/EFI/Scripts - ditto --arch i386 `which SetFile` ${1}/EFI/Scripts/Tools/SetFile - echo "Building efi package" - buildpackage "${1}/EFI" "/" "${coresize}" "start_visible=\"systemHasGPT()\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) && exclusive(choices['noboot'])\"" - # End build efi package - - # build reset choice package - mkdir -p ${1}/noboot/Root - echo "Building reset choice package" - buildpackage "${1}/noboot" "/binaries" "" "start_visible=\"true\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) && exclusive(choices['EFI'])\"" - # End build reset choice package - - ((xmlindent--)) - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" -# End build Chameleon package - -# build Extras package - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - choices[$((choicescount++))]="\n\n" - ((xmlindent++)) - - # build utility package - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - choices[$((choicescount++))]="\n\n" - ((xmlindent++)) - packagesidentity="org.chameleon" - - # build package for Chameleon PrefPanel - mkdir -p "${1}/PrefPanel/Root/" - ditto --noextattr --noqtn "${pkgroot}/Configuration/PrefPanel/Chameleon.prefPane" "${1}/PrefPanel/Root" - echo "Building Chameleon Preference Panel package" - buildpackage "${1}/PrefPanel" "/Library/PreferencePanes/Chameleon.prefPane" "" "start_selected=\"false\"" - # End build package for Chameleon PrefPanel - - # build package for SMBIOSDefault - mkdir -p "${1}/SMBIOSDefault/Root/" - ditto --noextattr --noqtn "${pkgroot}/Configuration/SMBIOSDefault/smbios.plist" "${1}/SMBIOSDefault/Root" - echo "Building SMBIOSDefault package" - buildpackage "${1}/SMBIOSDefault" "/Extra/Example" "" "start_selected=\"false\"" - # End build package for SMBIOSDefault - - # build package for EFIMounter - mkdir -p "${1}/EFIMounter/Root/" - ditto --noextattr --noqtn "${pkgroot}/Configuration/EFIMounter/EFI Mounter.app" "${1}/EFIMounter/Root" - echo "Building EFIMounter package" - buildpackage "${1}/EFIMounter" "/Applications/EFI Mounter.app" "" "start_selected=\"false\"" - # End build package for EFIMounter - - # build package for Documentation - mkdir -p "${1}/Documentation/Root" - cp -f ${pkgroot}/doc/BootHelp.txt ${1}/Documentation/Root - cp -f ${pkgroot}/doc/README ${1}/Documentation/Root - cp -f ${pkgroot}/doc/Users_Guide0.5.pdf ${1}/Documentation/Root - echo "Building Documentation package" - #buildpackage "${1}/Documentation" "/Documentation/Chameleon2RC5" "" "start_selected=\"false\"" - buildpackage "${1}/Documentation" "/Library/Documentation/Chameleon2RC5" "" "start_selected=\"false\"" - # End build package for Documentation - - ((xmlindent--)) - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - # End utility package - - # build options packages - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - choices[$((choicescount++))]="\n\n" - ((xmlindent++)) - - # build base options packages - packagesidentity="org.chameleon" - - options=($( find "${pkgroot}/Scripts/BaseOptions" -type d -depth 1 -not -name '.svn' )) - 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" - echo "Building ${options[$i]##*/} package" - buildpackage "${1}/${options[$i]##*/}" "/" "" "start_selected=\"false\"" - done - # End build base options packages - - # build resolution packages - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - choices[$((choicescount++))]="\n\n" - ((xmlindent++)) - packagesidentity="org.chameleon.resolution" - resolutions=($( find "${pkgroot}/Scripts/Resolutions" -type d -depth 1 -not -name '.svn' )) - 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" - echo "Building ${resolutions[$i]##*/} package" - buildpackage "${1}/${resolutions[$i]##*/}" "/" "" "start_selected=\"false\"" - done - - ((xmlindent--)) - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - # End build resolution packages - - # build Advanced packages - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - choices[$((choicescount++))]="\n\n" - ((xmlindent++)) - - packagesidentity="org.chameleon" - optionsadv=($( find "${pkgroot}/Scripts/Advanced" -type d -depth 1 -not -name '.svn' )) - 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" - echo "Building ${optionsadv[$i]##*/} package" - buildpackage "${1}/${optionsadv[$i]##*/}" "/" "" "start_selected=\"false\"" - done - - ((xmlindent--)) - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - # End build Advanced packages - - ((xmlindent--)) - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - - # End build options packages - - # build theme packages - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - choices[$((choicescount++))]="\n\n" - ((xmlindent++)) - packagesidentity="org.chameleon.theme" - artwork="${1%/*}" - themes=($( find "${artwork%/*}/artwork/themes" -type d -depth 1 -not -name '.svn' )) - for (( i = 0 ; i < ${#themes[@]} ; i++ )) - do - theme=$( echo ${themes[$i]##*/} | awk 'BEGIN{OFS=FS=""}{$1=toupper($1);print}' ) - mkdir -p "${1}/${theme}/Root/" - ditto --noextattr --noqtn "${themes[$i]}" "${1}/${themes[$i]##*/}/Root/${theme}" - find "${1}/${themes[$i]##*/}" -name '.DS_Store' -or -name '.svn' -exec rm -R {} \+ - find "${1}/${themes[$i]##*/}" -type f -exec chmod 644 {} \+ - echo "Building ${themes[$i]##*/} package" - buildpackage "${1}/${theme}" "/.Chameleon/Extra/Themes" "" "start_selected=\"false\"" - rm -R -f "${1}/${i##*/}" - done - - ((xmlindent--)) - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - # End build theme packages - - # build kext packages - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - choices[$((choicescount++))]="\n\n" - ((xmlindent++)) - packagesidentity="org.chameleon" - kexts=($( find "${pkgroot}/Kexts" -type d -name '*.kext' -depth 1 )) - for (( i = 0 ; i < ${#kexts[@]} ; i++ )) - do - filename="${kexts[$i]##*/}" - mkdir -p "${1}/${filename%.kext}/Root/" - ditto --noextattr --noqtn --arch i386 "${kexts[$i]}" "${1}/${filename%.kext}/Root/${filename}" - find "${1}/${filename%.kext}" -name '.DS_Store' -or -name '.svn' -exec rm -R -f {} \; 2>/dev/null - fixperms "${1}/${filename%.kext}/Root/" - chown 501:20 "${1}/${filename%.kext}/Root/" - echo "Building ${filename%.kext} package" - buildpackage "${1}/${filename%.kext}" "/.Chameleon/Extra/Extensions" "" "start_selected=\"false\"" - rm -R -f "${1}/${filename%.kext}" - done - ((xmlindent--)) - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - # End build kext packages - - ((xmlindent--)) - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" -# End build Extras package - -# build post install package - mkdir -p ${1}/Post/Root - mkdir -p ${1}/Post/Scripts - cp -f ${pkgroot}/Scripts/Post/* ${1}/Post/Scripts - buildpackage "${1}/Post" "/" "" "start_visible=\"false\" start_selected=\"true\"" - outline[$((outlinecount++))]="${indent[$xmlindent]}" - -# build meta package - makedistribution "${1}" "${2}" "${3}" "${4}" "${5}" - -# clean up - rm -R -f "${1}" - -} - -fixperms () -{ - # $1 path - find "${1}" -type f -exec chmod 644 {} \; - find "${1}" -type d -exec chmod 755 {} \; - chown -R 0:0 "${1}" -} - -buildpackage () -{ -# $1 Path to package to build containing Root and or Scripts -# $2 Install Location -# $3 Size -# $4 Options - -if [ -d "${1}/Root" ] && [ "${1}/Scripts" ]; then - - local packagename="${1##*/}" - local identifier=$( echo ${packagesidentity}.${packagename//_/.} | tr [:upper:] [:lower:] ) - find "${1}" -name '.DS_Store' -delete - local filecount=$( find "${1}/Root" | wc -l ) - if [ "${3}" ]; then - local installedsize="${3}" - else - local installedsize=$( du -hkc "${1}/Root" | tail -n1 | awk {'print $1'} ) - fi - local header="\n\n" - header+="\t\n" - rm -R -f "${1}/Temp" - - [ -d "${1}/Temp" ] || mkdir -m 777 "${1}/Temp" - [ -d "${1}/Root" ] && mkbom "${1}/Root" "${1}/Temp/Bom" - - if [ -d "${1}/Scripts" ]; then - header+="\t\n" - for script in $( find "${1}/Scripts" -type f \( -name 'pre*' -or -name 'post*' \) ) - do - header+="\t\t<${script##*/} file=\"./${script##*/}\"/>\n" - done - header+="\t\n" - chown -R 0:0 "${1}/Scripts" - pushd "${1}/Scripts" >/dev/null - find . -print | cpio -o -z -H cpio > "../Temp/Scripts" - popd >/dev/null - fi - - header+="" - echo -e "${header}" > "${1}/Temp/PackageInfo" - pushd "${1}/Root" >/dev/null - find . -print | cpio -o -z -H cpio > "../Temp/Payload" - popd >/dev/null - pushd "${1}/Temp" >/dev/null - - xar -c -f "${1%/*}/${packagename// /}.pkg" --compression none . - - popd >/dev/null - - outline[$((outlinecount++))]="${indent[$xmlindent]}\t" - - if [ "${4}" ]; then - local choiceoptions="${indent[$xmlindent]}${4}\n" - fi - choices[$((choicescount++))]="\n\t#${packagename// /}.pkg\n\n" - - rm -R -f "${1}" -fi -} - -makedistribution () -{ - rm -f "${1%/*}/${packagename// /}"*.pkg - - find "${1}" -type f -name '*.pkg' -depth 1 | while read component - do - mkdir -p "${1}/${packagename}/${component##*/}" - pushd "${1}/${packagename}/${component##*/}" >/dev/null - xar -x -f "${1%}/${component##*/}" - popd >/dev/null - done - - ditto --noextattr --noqtn "${pkgroot}/Distribution" "${1}/${packagename}/Distribution" - ditto --noextattr --noqtn "${pkgroot}/Resources" "${1}/${packagename}/Resources" - - find "${1}/${packagename}/Resources" -type d -name '.svn' -exec rm -R -f {} \; 2>/dev/null - - for (( i=0; i < ${#outline[*]} ; i++)); - do - echo -e "${outline[$i]}" >> "${1}/${packagename}/Distribution" - done - - for (( i=0; i < ${#choices[*]} ; i++)); - do - echo -e "${choices[$i]}" >> "${1}/${packagename}/Distribution" - done - - echo "" >> "${1}/${packagename}/Distribution" - - perl -i -p -e "s/%CHAMELEONVERSION%/${version%%-*}/g" `find "${1}/${packagename}/Resources" -type f` - perl -i -p -e "s/%CHAMELEONREVISION%/${revision}/g" `find "${1}/${packagename}/Resources" -type f` -# Adding Package type test (not translated) - perl -i -p -e "s/%PKGTYPE%/TEST/g" `find "${1}/${packagename}/Resources" -type f` -# - - stage=${stage/RC/Release Candidate } - stage=${stage/FINAL/2.0 Final} - perl -i -p -e "s/%CHAMELEONSTAGE%/${stage}/g" `find "${1}/${packagename}/Resources" -type f` - - find "${1}/${packagename}" -name '.DS_Store' -delete - pushd "${1}/${packagename}" >/dev/null - xar -c -f "${1%/*}/${packagename// /}-${version}-INSTALLER-r${revision}.pkg" --compression none . - popd >/dev/null - - md5=$( md5 "${1%/*}/${packagename// /}-${version}-INSTALLER-r${revision}.pkg" | awk {'print $4'} ) - echo "MD5 (${packagename// /}-${version}-INSTALLER-r${revision}.pkg) = ${md5}" > "${1%/*}/${packagename// /}-${version}-INSTALLER-r${revision}.pkg.md5" -} - -main "${1}" "${2}" "${3}" "${4}" "${5}" - Index: branches/blackosx/trunk/package/smbios.plist =================================================================== --- branches/blackosx/trunk/package/smbios.plist (revision 214) +++ branches/blackosx/trunk/package/smbios.plist (revision 215) @@ -1,48 +0,0 @@ - - - - - SMbiosversion - MP31.88Z.00C1.B00.0802091544 - SMmanufacter - Apple Inc. - SMproductname - MacPro3,1 - SMsystemversion - 1.0 - SMserial - W87234JHYA4 - SMexternalclock - 333 - SMmaximalclock - 3000 - SMmemtype - 19 - SMmemspeed - 800 - SMmemmanufacter_1 - 0xAD00000000000000 - SMmemserial_1 - 0x00001020 - SMmempart_1 - 0x48594D503131325336344350362D59352020 - SMmemmanufacter_2 - 0xAD00000000000000 - SMmemserial_2 - 0x00003021 - SMmempart_2 - 0x48594D503131325336344350362D59352020 - SMmemmanufacter_3 - 0xAD00000000000000 - SMmemserial_3 - 0x00003021 - SMmempart_3 - 0x48594D503131325336344350362D59352020 - SMmemmanufacter_4 - 0xAD00000000000000 - SMmemserial_4 - 0x00003021 - SMmempart_4 - 0x48594D503131325336344350362D59352020 - - Index: branches/blackosx/trunk/package/fdisk440 =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/Standard/null =================================================================== Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Standard/null ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/EFI System Partition/nullESP =================================================================== Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/EFI System Partition/nullESP ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/text_scroll_prev.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/text_scroll_prev.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_hfsraid.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_hfsraid.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/logo.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/logo.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_ext3.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_ext3.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_single_user.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_single_user.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/boot.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/boot.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_fat_o.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_fat_o.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_ntfs_o.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_ntfs_o.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_scroll_prev.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_scroll_prev.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_ignore_caches.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_ignore_caches.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_verbose_disabled.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_verbose_disabled.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_hfsplus_o.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_hfsplus_o.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_boot.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_boot.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/font_console.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/font_console.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_fat.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_fat.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_ntfs.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_ntfs.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_single_user_disabled.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_single_user_disabled.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/font_small.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/font_small.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/text_scroll_next.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/text_scroll_next.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_cdrom_o.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_cdrom_o.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_hfsplus.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_hfsplus.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_selection.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_selection.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_ignore_caches_disabled.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_ignore_caches_disabled.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_video_info.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_video_info.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_memory_info.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_memory_info.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/theme.plist =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/theme.plist (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/theme.plist (revision 215) @@ -0,0 +1,121 @@ + + + + + Author + Blackosx + Version + 1.0 + + Enabled + no + + screen_width + 1024 + screen_height + 768 + screen_textmargin_h + 10 + screen_textmargin_v + 10 + screen_bgcolor + #767f73 + + background_pos_x + 50% + background_pos_y + 0 + + logo_pos_x + + logo_pos_y + 5% + logo_bgcolor + #000000 + logo_transparency + 255 + + devices_pos_x + + devices_pos_y + + devices_bgcolor + #767f73 + devices_transparency + 0 + devices_max_visible + 4 + devices_iconspacing + 45 + devices_layout + horizontal + + bootprompt_pos_x + + bootprompt_pos_y + -6 + bootprompt_width + 40% + bootprompt_height + 20 + bootprompt_textmargin_h + 10 + bootprompt_textmargin_v + 5 + bootprompt_bgcolor + #3e3e3e + bootprompt_transparency + 1 + + infobox_pos_x + + infobox_pos_y + 30% + infobox_width + 660 + infobox_height + 320 + infobox_textmargin_h + 10 + infobox_textmargin_v + 10 + infobox_bgcolor + #3e3e3e + infobox_transparency + 35 + + menu_pos_x + + menu_pos_y + -5% + menu_textmargin_h + 10 + menu_textmargin_v + 5 + menu_bgcolor + #3e3e3e + menu_transparency + 1 + + progressbar_pos_x + + progressbar_pos_y + -30% + progressbar_width + 100 + progressbar_height + 40 + + countdown_pos_x + + countdown_pos_y + -20% + + boot_width + 1024 + boot_height + 768 + boot_bgcolor + #AAAAAA + + Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/theme.plist ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_generic_o.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_generic_o.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_selection.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_selection.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_scroll_next.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_scroll_next.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_help.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_help.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_hfsraid_o.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_hfsraid_o.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/background.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/background.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/thumb.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/thumb.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_ext3_o.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_ext3_o.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_cdrom.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_cdrom.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/progress_bar_background.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/progress_bar_background.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/progress_bar.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/progress_bar.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_verbose.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/menu_verbose.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_generic.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Default/Default/device_generic.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/text_scroll_prev.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/text_scroll_prev.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/font_small.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/font_small.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_hfsraid.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_hfsraid.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/text_scroll_next.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/text_scroll_next.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/logo.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/logo.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_ext3.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_ext3.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_single_user.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_single_user.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/boot.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/boot.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_hfsplus.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_hfsplus.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_ignore_caches_disabled.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_ignore_caches_disabled.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_selection.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_selection.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_video_info.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_video_info.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_memory_info.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_memory_info.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/theme.plist =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/theme.plist (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/theme.plist (revision 215) @@ -0,0 +1,121 @@ + + + + + Author + Blackosx + Version + 1.0 + + Enabled + no + + screen_width + 1024 + screen_height + 768 + screen_textmargin_h + 10 + screen_textmargin_v + 10 + screen_bgcolor + #767f73 + + background_pos_x + 50% + background_pos_y + 0 + + logo_pos_x + + logo_pos_y + 5% + logo_bgcolor + #000000 + logo_transparency + 255 + + devices_pos_x + + devices_pos_y + + devices_bgcolor + #767f73 + devices_transparency + 0 + devices_max_visible + 5 + devices_iconspacing + 35 + devices_layout + horizontal + + bootprompt_pos_x + + bootprompt_pos_y + -6 + bootprompt_width + 40% + bootprompt_height + 20 + bootprompt_textmargin_h + 10 + bootprompt_textmargin_v + 5 + bootprompt_bgcolor + #3e3e3e + bootprompt_transparency + 1 + + infobox_pos_x + + infobox_pos_y + 30% + infobox_width + 660 + infobox_height + 320 + infobox_textmargin_h + 10 + infobox_textmargin_v + 10 + infobox_bgcolor + #3e3e3e + infobox_transparency + 35 + + menu_pos_x + + menu_pos_y + -5% + menu_textmargin_h + 10 + menu_textmargin_v + 5 + menu_bgcolor + #3e3e3e + menu_transparency + 1 + + progressbar_pos_x + + progressbar_pos_y + -30% + progressbar_width + 100 + progressbar_height + 40 + + countdown_pos_x + + countdown_pos_y + -20% + + boot_width + 1024 + boot_height + 768 + boot_bgcolor + #AAAAAA + + Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/theme.plist ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_selection.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_selection.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_scroll_prev.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_scroll_prev.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_scroll_next.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_scroll_next.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_help.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_help.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_ignore_caches.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_ignore_caches.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/background.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/background.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_verbose_disabled.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_verbose_disabled.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_cdrom.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_cdrom.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_boot.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_boot.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/progress_bar_background.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/progress_bar_background.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/font_console.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/font_console.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/progress_bar.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/progress_bar.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_ntfs.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_ntfs.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_fat.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_fat.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_verbose.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_verbose.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_single_user_disabled.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/menu_single_user_disabled.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_generic.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/themes/Embed/Embed/device_generic.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GraphicsEnabler.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GraphicsEnabler.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GraphicsEnabler.sh (revision 215) @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "===============================================" +echo "Boot Option - GraphicsEnabler" +echo "******************************************" + +temp="/private/tmp/Chameleon" + +if [ ! -d ${temp} ]; then + mkdir ${temp}; +fi + +mkdir -p "${temp}/@GraphicsEnabler+Yes" \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GraphicsEnabler.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/RestartFix.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/RestartFix.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/RestartFix.sh (revision 215) @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "===============================================" +echo "Boot Option - RestartFix" +echo "******************************************" + +temp="/private/tmp/Chameleon" + +if [ ! -d ${temp} ]; then + mkdir ${temp}; +fi + +mkdir -p "${temp}/@RestartFix+No" \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/RestartFix.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/Arch.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/Arch.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/Arch.sh (revision 215) @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "===============================================" +echo "Boot Option - arch" +echo "******************************************" + +temp="/private/tmp/Chameleon" + +if [ ! -d ${temp} ]; then + mkdir ${temp}; +fi + +mkdir -p "${temp}/@arch+i386" Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/Arch.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GeneratePStates.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GeneratePStates.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GeneratePStates.sh (revision 215) @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "===============================================" +echo "Boot Option - GeneratePStates" +echo "******************************************" + +temp="/private/tmp/Chameleon" + +if [ ! -d ${temp} ]; then + mkdir ${temp}; +fi + +mkdir -p "${temp}/@GeneratePStates+Yes" \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GeneratePStates.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GenerateCStates.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GenerateCStates.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GenerateCStates.sh (revision 215) @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "===============================================" +echo "Boot Option - GenerateCStates" +echo "******************************************" + +temp="/private/tmp/Chameleon" + +if [ ! -d ${temp} ]; then + mkdir ${temp}; +fi + +mkdir -p "${temp}/@GenerateCStates+Yes" \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/GenerateCStates.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/DropSsdt.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/DropSsdt.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/DropSsdt.sh (revision 215) @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "===============================================" +echo "Boot Option - DropSSDT" +echo "******************************************" + +temp="/private/tmp/Chameleon" + +if [ ! -d ${temp} ]; then + mkdir ${temp}; +fi + +mkdir -p "${temp}/@DropSSDT+Yes" \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/DropSsdt.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/EthernetBuiltin.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/EthernetBuiltin.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/EthernetBuiltin.sh (revision 215) @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "===============================================" +echo "Boot Option - EthernetBuiltin" +echo "******************************************" + +temp="/private/tmp/Chameleon" + +if [ ! -d ${temp} ]; then + mkdir ${temp}; +fi + +mkdir -p "${temp}/@EthernetBuiltIn+Yes" \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/EthernetBuiltin.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/InstantMenu.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/InstantMenu.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/InstantMenu.sh (revision 215) @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "===============================================" +echo "Boot Option - InstantMenu" +echo "******************************************" + +temp="/private/tmp/Chameleon" + +if [ ! -d ${temp} ]; then + mkdir ${temp}; +fi + +mkdir -p "${temp}/@InstantMenu+Yes" \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BootOptions/InstantMenu.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskSignature.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskSignature.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskSignature.sh (revision 215) @@ -0,0 +1,38 @@ +#!/bin/bash + +echo "===============================================" +echo "Checkdisksignature:" +echo "********************" + +# this script is passed the targetdisk to work from, for example /dev/disk0 +# It then checks the disk sector for a 4-byte Windows disk signature +# if one is found then it exits with 1, otherwise it exits with 0 + +if [ "$#" -eq 1 ]; then + targetDisk="$1" + echo "DEBUG: passed argument for targetDisk = $targetDisk" +else + echo "Error - wrong number of values passed - Exiting" + exit 9 +fi + +disksignature=$( dd 2>/dev/null if="$targetDisk" count=1 | dd 2>/dev/null count=4 bs=1 skip=440 | perl -ne '@a=split"";for(@a){printf"%02x",ord}' ) + +echo "${disksignature}" + +if [ $disksignature = "00000000" ]; then + echo "No Windows installation detected." + echo "-----------------------------------------------" + echo "" + exit 0 +else + echo "Detected an existing Windows installation" + echo "-----------------------------------------------" + echo "" + exit 1 +fi + +echo "-----------------------------------------------" +echo "" + +exit 0 \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskSignature.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage0.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage0.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage0.sh (revision 215) @@ -0,0 +1,44 @@ +#!/bin/bash + +echo "===============================================" +echo "Write Chameleon Stage 0 Loader:" +echo "*******************************" + +# this script is passedÉ. + +if [ "$#" -eq 6 ]; then + diskupdate="$1" + disksignature="$2" + stage0Loader="$3" + stage0Loaderdualboot="$4" + targetDisk="$5" + targetVolume="$6" + echo "DEBUG: passed argument for diskupdate = $diskupdate" + echo "DEBUG: passed argument for disksignature = $disksignature" + echo "DEBUG: passed argument for stage0Loader = $stage0Loader" + echo "DEBUG: passed argument for stage0Loaderdualboot = $stage0Loaderdualboot" + echo "DEBUG: passed argument for targetDisk = $targetDisk" + echo "DEBUG: passed argument for targetVolume = $targetVolume" +fi + +if [ ${diskupdate} = "1" ]; then + echo "Diskupdate = true, so yes" + + if [ ${disksignature} = "0" ]; then + # ThereÕs no Windows disk signature then we can write boot0 + + echo "Executing command: ${targetVolume}/.Chameleon/i386/fdisk440 -u -f ${targetVolume}/.Chameleon/i386/$stage0Loader -y ${targetDisk}" + ${targetVolume}/.Chameleon/i386/fdisk440 -u -f ${targetVolume}/.Chameleon/i386/${stage0Loader} -y ${targetDisk} + else + # Windows is also installed on the HDD and we need to write boot0hfs + + echo "Executing command: ${targetVolume}/.Chameleon/i386/fdisk440 -u -f ${targetVolume}/.Chameleon/i386/${stage0Loaderdualboot} -y ${targetDisk}" + ${targetVolume}/.Chameleon/i386/fdisk440 -u -f ${targetVolume}/.Chameleon/i386/${stage0Loaderdualboot} -y ${targetDisk} + fi +fi + +echo "-----------------------------------------------" +echo "" +echo "" + +exit 0 \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage0.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage1.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage1.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage1.sh (revision 215) @@ -0,0 +1,62 @@ +#!/bin/bash + +echo "===============================================" +echo "Write Chameleon Stage 1 Loader:" +echo "*******************************" + +# espformat code is 1 for HFS, 2 for MSDOS, 0 for unknown + +if [ "$#" -eq 6 ]; then + espformat="$1" + stage1LoaderHFS="$2" + stage1LoaderFAT="$3" + selectedDestination="$4" + targetDeviceRaw="$5" + targetVolume="$6" + echo "DEBUG: passed argument for espformat = $espformat" + echo "DEBUG: passed argument for stage1LoaderHFS = $stage1LoaderHFS" + echo "DEBUG: passed argument for stage1LoaderFAT = $stage1LoaderFAT" + echo "DEBUG: passed argument for selectedDestination = $selectedDestination" + echo "DEBUG: passed argument for targetDeviceRaw = $targetDeviceRaw" + echo "DEBUG: passed argument for targetVolume = $targetVolume" +fi + +if [ ${espformat} = "1" ]; then + # the selected partition is HFS formatted + + echo "Executing command: dd if=${selectedDestination}/.Chameleon/i386/${stage1LoaderHFS} of=${targetDeviceRaw}" + dd if="${selectedDestination}/.Chameleon/i386/${stage1LoaderHFS}" of=${targetDeviceRaw} +fi + +if [ ${espformat} = "2" ]; then + # the selected partition FAT formatted + + # check to see if install to EFI system partition was selected + # if chosen, the package installer will add a file named 'nullESP' + # in to the temporary directory /.Chameleon + + if [ -f ${selectedDestination}/.Chameleon/nullESP ]; then + echo "Executing command: dd if=${targetDeviceRaw} count=1 bs=512 of=/tmp/origbs" + dd if=${targetDeviceRaw} count=1 bs=512 of=/tmp/origbs + + echo "Executing command: cp /.Chameleon/i386/${stage1LoaderFAT} /tmp/newbs" + cp ${selectedDestination}/.Chameleon/i386/${stage1LoaderFAT} /tmp/newbs + + echo "Executing command: dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc" + dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc + + echo "Executing command: dd of=${targetDeviceRaw} count=1 bs=512 if=/tmp/newbs" + dd if=/tmp/newbs of="${targetDeviceRaw}" count=1 bs=512 + else + echo "Executing command: dd if=/.Chameleon/i386/${stage1LoaderFAT} of=${targetDeviceRaw}" + dd if="${targetVolume}/.Chameleon/i386/${stage1LoaderFAT}" of=${targetDeviceRaw} + fi +fi + +echo "-----------------------------------------------" +echo "" + +exit 0 + + + Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage1.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage2.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage2.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage2.sh (revision 215) @@ -0,0 +1,67 @@ +#!/bin/bash + +echo "===============================================" +echo "Write Chameleon Stage 2 Loader:" +echo "*******************************" + +# Receives passed values for É.. +# for example: +# espformat code is 1 for HFS, 2 for MSDOS, 0 for unknown + + +if [ "$#" -eq 5 ]; then + espformat="$1" + stage2Loader="$2" + selectedDestination="$3" + targetDevice="$4" + targetVolume="$5" + echo "DEBUG: passed argument for espformat = $espformat" + echo "DEBUG: passed argument for stage2Loader = $stage2Loader" + echo "DEBUG: passed argument for selectedDestination = $selectedDestination" + echo "DEBUG: passed argument for targetDevice = $targetDevice" + echo "DEBUG: passed argument for targetVolume = $targetVolume" +fi + +# check to see if install to EFI system partition was selected +# if chosen, the package installer will add a file named 'nullESP' +# in to the temporary directory /.Chameleon + +if [ -f ${selectedDestination}/.Chameleon/nullESP ]; then + +echo "DEBUG: nullESP exists" + + #[ -d "${targetVolume}" ] || mkdir -p "${targetVolume}" + if [ ! -d "${targetVolume}" ]; then + echo "Executing Command: mkdir -p ${targetVolume}" + mkdir -p "${targetVolume}" + else + echo "DEBUG: folder /Volumes/EFI already exists" + fi + + #if the EFI system partition was selected then + # mount '/Volumes/EFI' with the correct format type + + if [ ${espformat} = 1 ]; then + + echo "Executing command: mount_hfs ${targetDevice} ${targetVolume}" + mount_hfs "${targetDevice}" "${targetVolume}" + fi + if [ ${espformat} = 2 ]; then + [ -d "${targetVolume}" ] || mkdir -p "${targetVolume}" + echo "Executing command: mount_msdos -u 0 -g 0 ${targetDevice} ${targetVolume}" + mount_msdos -u 0 -g 0 "${targetDevice}" "${targetVolume}" + fi +fi + +echo "Executing command: cp ${selectedDestination}/.Chameleon/i386/${stage2Loader} ${targetVolume}" +cp "${selectedDestination}/.Chameleon/i386/${stage2Loader}" "${targetVolume}" + +#echo "Executing command: ${targetResources}/Tools/SetFile -a V ${targetVolume}/${stage2Loader}" +#"${targetResources}/Tools/SetFile" -a V "${targetVolume}/${stage2Loader}" + + +echo "-----------------------------------------------" +echo "" +echo "" + +exit 0 \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/WriteChameleonStage2.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskMicrocode.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskMicrocode.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskMicrocode.sh (revision 215) @@ -0,0 +1,105 @@ +#!/bin/bash + +echo "===============================================" +echo "Entering CheckDiskMicrocode:" +echo "****************************" + +# This script is passed the targetDisk and diskSigCheck. +# +# it then reads the GPTdiskProtectiveMBR and searches for an existing +# Windows bootloader and also for an existing Chameleon stage 0 loader +# which might be better changed depending on whether or not a Windows +# signature is found or not. +# +# The script then exits with the value 1 to indicate that Chameleon stage0 +# loader can be written, or 0 to indicate not to write the stage0 loader. + +if [ "$#" -eq 2 ]; then + targetDisk="$1" + diskSigCheck="$2" + echo "DEBUG: passed argument for targetDisk = $targetDisk" + echo "DEBUG: passed argument for diskSigCheck = $diskSigCheck" +else + echo "Error - wrong number of values passed - Exiting" + exit 9 +fi + + +# read the first 437 bytes of the MBR + +mbr437=$( dd 2>/dev/null if="$targetDisk" count=1 | dd 2>/dev/null count=1 bs=437 | perl -ne '@a=split"";for(@a){printf"%02x",ord}' ) +#mbr437md5=$( dd 2>/dev/null if="$targetDisk" count=1 | dd 2>/dev/null count=1 bs=437 | md5 ) + +#echo "DEBUG: ${mbr437}" + +if [ $( echo "${mbr437}" | awk -F0 '{print NF-1}' ) = 874 ]; then + echo "The first 437 bytes of the MBR Disk Sector is blank - Updating" + echo "diskupdate is now set to true." + echo "-----------------------------------------------" + echo "" + exit 1 +else + # There is already something on the MBR + + # See if a Windows bootloader already exists + # Check bytes 440-443 of the GPTdiskProtectiveMBR for a Windows Disk Signature + windowsloader=$( dd 2>/dev/null if="$targetDisk" count=4 bs=1 | xxd | awk '{print $2$3}' ) + if [ "${windowsloader}" == "33c08ed0" ] ; then + echo "Found existing Windows Boot Loader so will replace with Chameleon Boot0hfs" + echo "diskupdate is now set to true." + echo "-----------------------------------------------" + echo "" + exit 1 + fi + + # See if a Chameleon stage0 boot file already exists + + # Note: The checks for Boot0 and Boot0hfs assume the code stays the same. + # if the code changes then the hex values 0b807c and 0a803c used for matching + # need to be checked to see if they are the same or not. + + stage0type=$( dd 2>/dev/null if="$targetDisk" count=3 bs=1 skip=105 | xxd | awk '{print $2$3}' ) + echo ${stage0type} + if [ "${stage0type}" == "0b807c" ]; then + echo "Found existing Chameleon stage 0 loader - Boot0hfs" + + # CheckDiskSignature.sh returns 0 if a Windows installation was NOT found + if [ "$diskSigCheck" == "0" ]; then + echo "Found no existing Windows installation so will replace stage 0 loader with Boot0" + echo "diskupdate is now set to true." + echo "-----------------------------------------------" + echo "" + exit 1 + fi + fi + + if [ "${stage0type}" == "0a803c" ]; then + echo "Found existing Chameleon stage 0 loader - Boot0" + + # CheckDiskSignature.sh returns 1 if a Windows installation was found + if [ "$diskSigCheck" = "1" ]; then + echo "Found existing Windows installation so will replace stage 0 loader with Boot0hfs" + echo "diskupdate is now set to true." + echo "-----------------------------------------------" + echo "" + exit 1 + fi + fi + + # If neither Chameleon Boot Loader or Windows loader exists + if [ "${stage0type}" != "0b807c" ] && [ "${stage0type}" != "0a803c" ] && [ "${windowsloader}" != "33c08ed0" ] ; then + test=$(echo "${mbr437}" | awk -F0 '{print NF-1}' ) + echo "Disk microcode found: ${test} - Preserving." + echo "diskupdate is left at false" + echo "-----------------------------------------------" + echo "" + exit 0 + fi +fi + + +echo "-----------------------------------------------" +echo "" +echo "" + +exit 0 Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskMicrocode.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskMicrocodeType.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskMicrocodeType.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskMicrocodeType.sh (revision 215) @@ -0,0 +1,40 @@ +#!/bin/bash + +echo "===============================================" +echo "Diskmicrocodetype:" +echo "******************" + +# This script is passed the targetdisk +# it then reads the MBR of the disk in the attempt to find the +# signature for either the GRUB or Linux bootloaders. +# The script returns 1 if either is found, or 0 if none found. + +if [ "$#" -eq 1 ]; then + targetDisk="$1" + echo "DEBUG: passed argument for targetDisk = $targetDisk" +else + echo "Error - wrong number of values passed" + exit 9 +fi + +diskmicrocodetype[1]="GRUB,47525542" +diskmicrocodetype[2]="LILO,4c494c4f" + + +diskmicrocode=$( dd 2>/dev/null if="$targetDisk" count=1 | dd 2>/dev/null count=1 bs=437 | perl -ne '@a=split"";for(@a){printf"%02x",ord}' ) +#echo "${diskmicrocode}" +diskmicrocodetypecounter=0 +while [ ${diskmicrocodetypecounter} -lt ${#diskmicrocodetype[@]} ]; do + diskmicrocodetypecounter=$(( ${diskmicrocodetypecounter} + 1 )) + diskmicrocodetypeid=${diskmicrocodetype[${diskmicrocodetypecounter}]#*,} + if [ ! "${diskmicrocode}" = "${diskmicrocode/${diskmicrocodetypeid}/}" ]; then + echo "${diskmicrocodetype[${diskmicrocodetypecounter}]%,*} found." + exit 1 + else + echo "Didn't find a match for ${diskmicrocodetype[${diskmicrocodetypecounter}]%,*}" + fi +done +echo "-----------------------------------------------" +echo "" + +exit 0 \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckDiskMicrocodeType.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckProceed.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckProceed.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckProceed.sh (revision 215) @@ -0,0 +1,35 @@ +#!/bin/bash + +echo "===============================================" +echo "Check Proceed - Can the script continue?" +echo "******************************************" + +# Receives Target Disk and Target Device +# Checks the selected volume is present and the disk +# is partitioned. + +if [ "$#" -eq 2 ]; then + targetVolume="$1" + targetDevice="$2" + echo "DEBUG: passed argument for targetVolume = $targetVolume" + echo "DEBUG: passed argument for targetDevice = $targetDevice" +fi + +if [ -z "$targetVolume" ]; then + echo "Cannot find the volume. Exiting." + exit 1 +else + echo "Confirming target volume exists" +fi + +if [ "$targetDevice" = "$targetDevice#*disk*s" ]; then + echo "ERROR Volume does not use slices." + exit 1 +else + echo "Confirming target device uses slices" +fi + +echo "-----------------------------------------------" +echo "" + +exit 0 \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckProceed.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/SetActivePartition.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/SetActivePartition.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/SetActivePartition.sh (revision 215) @@ -0,0 +1,59 @@ +#!/bin/bash + +echo "===============================================" +echo "Set Active Partition ONLY if Windows is not installed" +echo "*****************************************************" + +# Receives passed values for É.. +# for example: +# efiformat code is 1 for HFS, 2 for MSDOS, 0 for unknown +# diskSigCheck code is 1 for a Windows install, 0 for no Windows install + +if [ "$#" -eq 5 ]; then + efiformat="$1" + diskSigCheck="$2" + targetDiskRaw="$3" + targetSlice="$4" + targetVolume="$5" + + echo "DEBUG: passed argument for efiformat = $efiformat" + echo "DEBUG: passed argument for diskSigCheck = $diskSigCheck" + echo "DEBUG: passed argument for targetDiskRaw = $targetDiskRaw" + echo "DEBUG: passed argument for targetSlice = $targetSlice" + echo "DEBUG: passed argument for targetVolume = $targetVolume" + +fi + +if [ ${diskSigCheck} == "0" ]; then + echo "DEBUG: Windows is not installed so let's change the active partition" + + partitionactive=$( ${targetVolume}/.Chameleon/i386/fdisk440 -d ${targetDiskRaw} | grep -n "*" | awk -F: '{print $1}') + echo "Current Active Partition: ${partitionactive}" + + if [ "${partitionactive}" = "${targetSlice}" ]; then + echo "${targetVolume} is already flagged as active" + else + echo "${targetVolume} is not flagged as active, so let's do it." + # BadAxe requires EFI partition to be flagged active. + # but it doesn't' hurt to do it for any non-windows partition. + + ${targetVolume}/.Chameleon/i386/fdisk440 -e ${targetDiskRaw} <<-MAKEACTIVE + print + flag ${targetSlice} + write + y + quit + MAKEACTIVE + fi +else + echo "Windows is installed so we let that remain the active partition" +fi + +echo "-----------------------------------------------" +echo "" +echo "" + +exit 0 + + + Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/SetActivePartition.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/postflight.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/postflight.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/postflight.sh (revision 215) @@ -0,0 +1,66 @@ +#!/bin/bash + +echo "===============================================" +echo "Entered Postflight Script" +echo "*************************" + +# Find location of this script in the package installer +# so we know where all the other scripts are located. + +MYLOCATION="${PWD}/${BASH_ARGV[0]}" +export MYLOCATION="${MYLOCATION%/*}" +scriptDir=$MYLOCATION + + +# Run script to create com.apple.Boot.plist +# and pass it the installer destination. + +"$scriptDir"BuildBootOptions.sh "${3}" + + +# Has the temporary directory /.Chameleon/Extra been created? +# If yes then transfer temporary com.apple.Boot.plist to destination. + +if [ -d ${3}/.Chameleon/Extra ]; then + + # check to see if install to EFI system partition was selected + # if chosen, the package installer will add a file named 'nullESP' + # in to the temporary directory /.Chameleon + + if [ -f ${3}/.Chameleon/nullESP ]; then + echo "Executing command: mv -f ${3}/.Chameleon/Extra /Volumes/EFI" + mv -f ${3}/.Chameleon/Extra /Volumes/EFI + + echo "Executing command: umount -f Volumes/EFI" + "$scriptDir"UnMountEFIvolumes.sh + returnValue=$? + if [ ${returnValue} = 0 ]; then + rm -R -f /Volumes/EFI + fi + else + echo "Executing command: mv -f ${3}/.Chameleon/Extra ${3}/" + mv -f ${3}/.Chameleon/Extra ${3}/ + fi + +fi + +echo "===============================================" +echo "Clean Up" +echo "*************************" + +# remove the temporary /.Chameleon directory +echo "Executing command: rm -r ${3}/.Chameleon/" +rm -r ${3}/.Chameleon/ + +# remove the temporary boot sector files if they exist +if [ -d /tmp/newbs ]; then + echo "Executing command: rm /tmp/newbs" + rm /tmp/newbs +fi +if [ -d /tmp/origbs ]; then + echo "Executing command: rm /tmp/origbs" + rm /tmp/origbs +fi + + +exit 0 Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/postflight.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckFormat.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckFormat.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckFormat.sh (revision 215) @@ -0,0 +1,35 @@ +#!/bin/bash + +echo "===============================================" +echo "Check the format of the selected partition" +echo "******************************************" + +# Receives passed value for the Target Volume Device +# for example: /dev/disk0s2 +# if the selected partition is formatted as HFS then exit with 1 +# if the selected partition is formatted as MSDOS then exit with 2 +# if fstyp doesn't return a value then exit with 0 + +if [ "$#" -eq 1 ]; then + targetDevice="$1" + echo "DEBUG: passed argument for targetDevice = $targetDevice" +fi + +if [ "$( fstyp "$targetDevice" | grep hfs )" ]; then + echo "${targetDevice} is currently formatted as HFS" + echo "-----------------------------------------------" + echo "" + exit 1 + +fi +if [ "$( fstyp "$targetDevice" | grep msdos )" ]; then + echo "${targetDevice} is currently formatted as msdos" + echo "-----------------------------------------------" + echo "" + exit 2 +fi + +echo "-----------------------------------------------" +echo "" + +exit 0 \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckFormat.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/MainESPPostinstall.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/MainESPPostinstall.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/MainESPPostinstall.sh (revision 215) @@ -0,0 +1,175 @@ +#!/bin/bash + +echo "===============================================" +echo "Main EFI System Partition Post-Install Script" +echo "*********************************************" +echo "-----------------------------------------------" +echo "" + +# Find location of this script in the package installer +# so we know where all the other scripts are located. +MYLOCATION="${PWD}/${BASH_ARGV[0]}" +export MYLOCATION="${MYLOCATION%/*}" +scriptDir=$MYLOCATION + + +#echo "===============================================" +#echo "Apple Installer Package Variables" +#echo "*********************************" +#echo "DEBUG: $ 1 = Full path to the installation package the installer app is processing: " $1 +#echo "DEBUG: $ 2 = Full path to the installation destination: " $2 +#echo "DEBUG: $ 3 = Installation volume (mountpoint) to receive the payload: " $3 +#echo "DEBUG: $ 4 = Root directory for the system: " $4 +#echo "DEBUG: Script Name: " $SCRIPT_NAME +#echo "DEBUG: Package Path: " $PACKAGE_PATH +#echo "DEBUG: Installer Temp: " $INSTALLER_TEMP +#echo "DEBUG: Full path to the temp directory containing the operation executable: " $RECEIPT_PATH +#echo "-----------------------------------------------" +#echo "" + + +# Initialise Script Globals + +stage0Loader="boot0" #diskloader +stage0LoaderDualBoot="boot0hfs" #was stage0Loaderdualboot +stage1LoaderHFS="boot1h" #was stage1LoaderHFS +stage1LoaderFAT="boot1f32" #was partitionloaderfat +stage2Loader="boot" #was filesystemloader + +targetVolumeTemp=$3 #was bootvolume +targetDeviceTemp=$( df "${targetVolumeTemp}" | sed -n '2p' | awk '{print $1}' ) #was bootdev + +targetVolume="/Volumes/EFI" +targetDevice=${targetDeviceTemp%s*}s1 +targetDeviceRaw=${targetDevice/disk/rdisk} #was bootrdev +targetDisk=${targetDevice%s*} #was bootdisk +targetDiskRaw=${targetDisk/disk/rdisk} #was bootrdisk +targetSlice=${targetDevice#*disk*s} #was bootslice +targetResources="${targetVolume%/*}" #was bootresources - is this needed? + + + +echo "===============================================" +echo "DEBUG: display script variables" +echo "***************************" + +echo "DEBUG: stage0Loader: Disk loader is ${stage0Loader}" +echo "DEBUG: stage0LoaderDualBoot: Disk loader is ${stage0LoaderDualBoot}" +echo "DEBUG: stage1LoaderHFS: Partition loader is ${stage1LoaderHFS}" +echo "DEBUG: stage1LoaderFat: Partition loader is ${stage1LoaderFAT}" +echo "DEBUG: stage2Loader: Filesystem loader is ${stage2Loader}" +echo "DEBUG: targetVolumeTemp: Volume is ${targetVolumeTemp}" +echo "DEBUG: targetDeviceTemp: Volume device is ${targetDeviceTemp}" +echo "DEBUG: targetVolume: Volume is ${targetVolume}" +echo "DEBUG: targetDevice: Volume device is ${targetDevice}" +echo "DEBUG: targetDeviceRaw: Volume raw device is ${targetDeviceRaw}" +echo "DEBUG: targetDisk: Disk device is ${targetDisk}" +echo "DEBUG: targetDiskRaw: Disk raw device is ${targetDiskRaw}" +echo "DEBUG: targetSlice: Volume slice is ${targetSlice}" +echo "DEBUG: targetResources: Boot Resources is ${targetResources} - ????????????" +echo "DEBUG: targetName: Volume name to look for is ${targetName} - ????????????" +echo "-----------------------------------------------" +echo "" + + +# Check to see if the selected disk uses a GPT + +bootuuid=$( diskutil info "$targetDeviceTemp" | grep Volume\ UUID | awk {'print $3'} ) +partitiontable=$( diskutil list ${targetDeviceTemp%s*} | sed -n '3p' | awk '{print $2}' ) + +if [ ${partitiontable} = "GUID_partition_scheme" ]; then + echo "Confirm this is a GPT partitioned disk." + + # Double check we can see the selected partition and it's of the right type + + "$scriptDir"CheckProceed.sh "${targetVolumeTemp}" "${targetDeviceTemp}" + returnValue=$? + if [ ${returnValue} = 0 ]; then + # OK to proceed + + + # Does a GRUB or Linux loader already exist in the disk's MBR? + + "$scriptDir"CheckDiskMicrocodeType.sh "${targetDisk}" + returnValue=$? + if [ ${returnValue} = 0 ]; then + # OK to proceed + + + # check for a 4-byte Windows disk signature in the disk's MBR. + # the following script returns 1 if a Windows disk signature exists, and 0 if not. + + "$scriptDir"CheckDiskSignature.sh "${targetDisk}" + diskSigCheck=$? + + + # check for existing bootloaders in the disk's MBR + # and find out if we can write the Chameleon boot files. + # the following script returns 1 if we can proceed + # with writing the boot files, and 0 for not. + + "$scriptDir"CheckDiskMicrocode.sh "${targetDisk}" "${diskSigCheck}" + diskupdate=$? + + + # Cancelled this as all it does is read the GPTdiskProtectiveMBR + # and the GPTdiskGPTHeader and look to see if they're blank + # then make a note of the MD5 for eachÉ But they're never used? + + #"$scriptDir"FindPartitionBootcode.sh "${targetDeviceRaw}" + + + # check the format of the selected partition. + # the following script returns 1 if HFS + # the following script returns 2 if MSDOS + # the following script returns 0 if nothing + + "$scriptDir"CheckFormat.sh "${targetDevice}" + espformat=$? + + + # Determine the partition scheme of the selected disk + # is it GPT or a hybrid GPT/MBR + + "$scriptDir"CheckPartitionScheme.sh "${targetDisk}" + + + # Unmount ALL mounted volumes named EFI + # the following script returns 0 if it succeeds + # the following script returns 1 if it fails to un-mount any EFI volume + + "$scriptDir"UnMountEFIvolumes.sh + returnValue=$? + if [ ${returnValue} = 0 ]; then + # OK to proceed + + + # Check the format of the EFI system partition + # No Needed as this is done earlier by CheckFormat.sh + #"$scriptDir"CheckESPformat.sh "${targetDevice}" + + + # If diskupdate is flagged as 1 then the stage 0 loader can be written to the MBR + if [ ${diskupdate} = 1 ]; then + "$scriptDir"WriteChameleonStage0.sh "${diskupdate}" "${diskSigCheck}" "${stage0Loader}" "${stage0LoaderDualBoot}" "${targetDisk}" "${targetVolumeTemp}" + fi + + # Write the stage 1 loader to the partition boot sector + "$scriptDir"WriteChameleonStage1.sh "${espformat}" "${stage1LoaderHFS}" "${stage1LoaderFAT}" "${targetVolumeTemp}" "${targetDeviceRaw}" "${targetVolume}" + + # Write the stage 2 loader to the root of the selected partition + "$scriptDir"WriteChameleonStage2.sh "${espformat}" "${stage2Loader}" "${targetVolumeTemp}" "${targetDevice}" "${targetVolume}" + + # Set the active partition ONLY if Windows is not installed + "$scriptDir"SetActivePartition.sh "${espformat}" "${diskSigCheck}" "${targetDiskRaw}" "${targetSlice}" "${targetVolumeTemp}" + + fi + fi + fi +else + echo + echo "ERROR Volume is not on a GPT partitioned disc." + echo +fi + +exit 0 Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/MainESPPostinstall.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckPartitionScheme.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckPartitionScheme.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckPartitionScheme.sh (revision 215) @@ -0,0 +1,40 @@ +#!/bin/bash + +echo "===============================================" +echo "Check the Partition Scheme" +echo "******************************************" + +# Receives passed value for the Target Disk +# for example: /dev/disk0s2 +# Then looks for the following: +# First 8 bytes of the GPTdiskGPTHeader to identify a GUID partition table. +# Byte number 450 of the GPTdiskProtectiveMBR to identify ID of 'EE' to identify a GPT partition. +# Byte numbers 466, 482 & 498 of the GPTdiskProtectiveMBR to identify further partitions. + +if [ "$#" -eq 1 ]; then + targetDisk="$1" + echo "DEBUG: passed argument = $targetDisk" +fi + + +partitiontable=$( dd 2>/dev/null if="$targetDisk" count=1 skip=1 | dd 2>/dev/null count=8 bs=1 | perl -ne '@a=split"";for(@a){printf"%02x",ord}' ) +if [ "${partitiontable:0:16}" == "4546492050415254" ]; then + partitiontable=$( dd 2>/dev/null if="$targetDisk" count=1 | dd 2>/dev/null count=64 bs=1 skip=446 | perl -ne '@a=split"";for(@a){printf"%02x",ord}' ) + if [ "${partitiontable:8:2}" == "ee" ]; then + echo "Found System ID 'EE' to identify GPT Partition" + if [ "${partitiontable:40:2}" == "00" ] && [ "${partitiontable:72:2}" == "00" ] && [ "${partitiontable:104:2}" == "00" ]; then + echo "Found System ID '00' for each remaining possible partition" + partitiontable="GPT" + else + partitiontable="GPT/MBR" + fi + fi +else + partitiontable="MBR" +fi + +echo "${partitiontable} found." +echo "-----------------------------------------------" +echo "" + +exit 0 \ No newline at end of file Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/CheckPartitionScheme.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BuildBootOptions.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BuildBootOptions.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BuildBootOptions.sh (revision 215) @@ -0,0 +1,252 @@ +#!/bin/bash + +main () +{ + tempDir="${destainationDrive}/.Chameleon/" + echo "DEBUG: tempDir is ${tempDir}" + + + if [ ! -d "${tempDir}" ]; then + echo "the temporary directory does not exist so no boot options have been selected" + else + # check for see if there are any boot options in the temporary directory + + cd "${tempDir}" + Dirlist=$(find . -type d | grep "@") + + if [ "${Dirlist}" ]; then + + echo "===============================================" + echo "set com.apple.Boot.plist variables" + echo "**********************************" + + #bootplist="${destainationDrive}/.Chameleon/Extra/com.apple.Boot.plist" + bootplist="${tempDir}/Extra/com.apple.Boot.plist" + echo "DEBUG: bootplist = ${bootplist}" + + systemplist="/Library/Preferences/SystemConfiguration/com.apple.Boot.plist" + echo "DEBUG: systemplist= ${systemplist}" + + echo "if no directory exists named ${bootplist%/*} then mkdir ${bootplist%/*}" + [ ! -d "${bootplist%/*}" ] && mkdir -p "${bootplist%/*}" + + if [ ! -f "${bootplist}" ]; then + echo "${bootplist} doesn't exist" + if [ -f "${systemplist}" ]; then + echo "${systemplist} doesn't exist" + echo "copy ${systemplist} to ${bootplist}" + cp "${systemplist}" "${bootplist}" + fi + fi + echo "-----------------------------------------------" + echo "" + + + echo "===============================================" + echo "Build Extra/com.apple.Boot.plist" + echo "********************************" + + for directory in $Dirlist ; do + overide=$(echo $directory | sed 's/_/ /g' | tr -d "./@" |cut -d '+' -f1) + string=$(echo $directory | tr -d "./@" |cut -d'+' -f2) + + bootoptionshdextra[1]="${overide}" + bootoptionshdextra[2]="${string}" + #echo "DEBUG: bootoptionshdextra 1 = ${bootoptionshdextra[1]}" + #echo "DEBUG: bootoptionshdextra 2= ${bootoptionshdextra[2]}" + + xmlvalue=$( getxmlvalue ${overide} "${bootplist}" | tr "[:upper:]" "[:lower:]" ) + + case "${xmlvalue:0:1}" in + + y) echo "${overide}=y already set in ${bootplist} skipping." + echo "" + ;; + + n) echo "${overide}=n is set in ${bootplist} leaving." + echo "" + ;; + + *) echo "Adding ${overide}=${string} to ${bootplist}" + array=("${bootoptionshdextra[@]}") + searchfilereplaceline "${bootplist}" "Kernel Flags" "" "" "2" + echo "" + ;; + esac + + #echo "set owner privileges for ${bootplist}" + chown "${USER}:20" "${bootplist}" + done + + echo "-----------------------------------------------" + echo "" + + + echo "===============================================" + echo "Remove Boot Options Folders" + echo "***************************" + + #Note - Can this be somehow included above and delete the directory after reading it? + + #cd "${3}/.Chameleon/" + Dirlist=$(find . -type d | grep "@") + for directory in $Dirlist ; do + echo $directory + rm -rf $directory + done + + echo "-----------------------------------------------" + echo "" + + else + echo "No boot options in the temporary directory." + fi + + fi + + + + +} + +getxmlvalue () +{ +# 1 xml key +# 2 xml file +if [ -f "${2}" ]; then + local value + while read value; do + if [ ! "${value}" = "${value/${1}/}" ]; then + read value + value="${value#*<}" ; value="<${value}" ; value="${value#*>}" ; value="${value# *}" ; value="${value%%<*}" + echo "$value" + break + fi + done < "${2}" +fi +} + +searchfilereplaceline () +{ + +mv "${1}" "${1}.orig" + +prefunctionifs="${IFS}" + +unset fileinput +unset fileoutput +unset find +unset replace +unset deletelines +unset deletelinesskip +unset insertlinesskip + +fileinput="${1}.orig" +fileoutput="${1}" +find="${2}" +replace="${3}" +deletelines="${4%,*}" +insertlinesskip="${5}" + +matchlinefound="0" + +if [ "${#4}" = "${4#*,}" ]; then + deletelinesskip="0" + else + deletelinesskip="${4#*,}" +fi + +IFS="\n" +while read line +do + { + if [ ! "${line}" = "${line/${find}/}" ]; then + { + # Trim the longest match from the end for <* + xmlelementindent="${line%%<*}" + + # Trim the longest match from the start for *< + xmlelementtemp="${line#*<}" + # Add back in stripped < + xmlelement="<${xmlelementtemp}" + + # Trim the shortest match from the start for < + xmltagtemp="${xmlelement#<}" + # Trim the longest match from the end for >* + xmltag="${xmltagtemp%%>*}" + + # Trim the shortest match from the start for *> + xmltexttemp="${xmlelement#*>}" + # Trim the longest match from the end for <* + xmltext="${xmltexttemp%%<*}" + + if [ "${replace}" ]; then + { + echo "${xmlelementindent}<${xmltag}>${replace}" >>"${fileoutput}" + } + else + { + echo "${line}" >>"${fileoutput}" + } + fi + matchlinefound="1" + + } + else + { + + if [ "${insertlinesskip}" ] && [ "${matchlinefound}" -gt 0 ] && [ "${matchlinefound}" -le "${insertlinesskip}" ]; then + { + if [ "${matchlinefound}" = "${insertlinesskip}" ]; then + { + arraysize=0 + while [ ${arraysize} -lt ${#array[@]} ]; + do + echo "${xmlelementindent}${array[${arraysize}]}" >>"${fileoutput}" + let arraysize="${arraysize}+1" + done + } + fi + } + fi + + if [ "${deletelines}" ] && [ "${matchlinefound}" -gt 0 ] && [ "${matchlinefound}" -lt $((${deletelines}+${deletelinesskip})) ] && [ "${matchlinefound}" -ge ${deletelinesskip} ]; then + { + : + } + else + { + echo "${line}" >>"${fileoutput}" + } + fi + + if [ "${matchlinefound}" -gt 0 ]; then + let matchlinefound="${matchlinefound}+1" + fi + + } + fi + } +done < "${fileinput}" + +IFS=${prefunctionifs} + +rm -f "${fileinput}" +} + + +echo "===============================================" +echo "Enter Build Boot Options script" +echo "*******************************" + +# get the passed destination drive? + +if [ "$#" -eq 1 ]; then + destainationDrive="$1" + echo "DEBUG: passed argument for destainationDrive = $destainationDrive" +fi + +# Build Boot Options +main "${1}" "${2}" "${3}" "${4}" + +exit 0 Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/BuildBootOptions.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/MainStandardPostinstall.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/MainStandardPostinstall.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/MainStandardPostinstall.sh (revision 215) @@ -0,0 +1,141 @@ +#!/bin/bash + +echo "===============================================" +echo "Main Standard Post-Install Script" +echo "*********************************" +echo "-----------------------------------------------" +echo "" + +# Find location of this script in the package installer +# so we know where all the other scripts are located. +MYLOCATION="${PWD}/${BASH_ARGV[0]}" +export MYLOCATION="${MYLOCATION%/*}" +scriptDir=$MYLOCATION + + +#echo "===============================================" +#echo "Apple Installer Package Variables" +#echo "*********************************" +#echo "DEBUG: $ 1 = Full path to the installation package the installer app is processing: " $1 +#echo "DEBUG: $ 2 = Full path to the installation destination: " $2 +#echo "DEBUG: $ 3 = Installation volume (mountpoint) to receive the payload: " $3 +#echo "DEBUG: $ 4 = Root directory for the system: " $4 +#echo "DEBUG: Script Name: " $SCRIPT_NAME +#echo "DEBUG: Package Path: " $PACKAGE_PATH +#echo "DEBUG: Installer Temp: " $INSTALLER_TEMP +#echo "DEBUG: Full path to the temp directory containing the operation executable: " $RECEIPT_PATH +#echo "-----------------------------------------------" +#echo "" + + + +# Initialise Script Globals + +stage0Loader="boot0" #diskloader +stage0LoaderDualBoot="boot0hfs" #was stage0Loaderdualboot +stage1LoaderHFS="boot1h" #was stage1LoaderHFS +stage1LoaderFAT="boot1f32" #was partitionloaderfat +stage2Loader="boot" #was filesystemloader + +targetVolume=$3 #was bootvolume +targetDevice=$( df "${targetVolume}" | sed -n '2p' | awk '{print $1}' ) #was bootdev +targetDeviceRaw=${targetDevice/disk/rdisk} #was bootrdev +targetDisk=${targetDevice%s*} #was bootdisk +targetDiskRaw=${targetDisk/disk/rdisk} #was bootrdisk +targetSlice=${targetDevice#*disk*s} #was bootslice +targetResources="${targetVolume%/*}" #was bootresources - is this needed? + + + +echo "===============================================" +echo "DEBUG: display script variables" +echo "***************************" + +echo "DEBUG: stage0Loader: Disk loader is ${stage0Loader}" +echo "DEBUG: stage0LoaderDualBoot: Disk loader is ${stage0LoaderDualBoot}" +echo "DEBUG: stage1LoaderHFS: Partition loader is ${stage1LoaderHFS}" +echo "DEBUG: stage1LoaderFat: Partition loader is ${stage1LoaderFAT}" +echo "DEBUG: stage2Loader: Filesystem loader is ${stage2Loader}" +echo "DEBUG: targetVolume: Volume is ${targetVolume}" +echo "DEBUG: targetDevice: Volume device is ${targetDevice}" +echo "DEBUG: targetDeviceRaw: Volume raw device is ${targetDeviceRaw}" +echo "DEBUG: targetDisk: Disk device is ${targetDisk}" +echo "DEBUG: targetDiskRaw: Disk raw device is ${targetDiskRaw}" +echo "DEBUG: targetSlice: Volume slice is ${targetSlice}" +echo "DEBUG: targetResources: Boot Resources is ${targetResources}" +echo "-----------------------------------------------" +echo "" + + +# Double check we can see the selected partition and it's of the right type +# if not the following script returns to indicate failure. + +"$scriptDir"CheckProceed.sh "${targetVolume}" "${targetDevice}" +returnValue=$? +if [ ${returnValue} = 0 ]; then + # OK to proceed + + + # Does a GRUB or Linux loader already exist in the disk's MBR? + + "$scriptDir"CheckDiskMicrocodeType.sh "${targetDisk}" + returnValue=$? + if [ ${returnValue} = 0 ]; then + # OK to proceed + + + # check for a 4-byte Windows disk signature in the disk's MBR. + # the following script returns 1 if a Windows disk signature exists, and 0 if not. + + "$scriptDir"CheckDiskSignature.sh "${targetDisk}" + diskSigCheck=$? + + + # check for existing bootloaders in the disk's MBR + # and find out if we can write the Chameleon boot files. + # the following script returns 1 if we can proceed + # with writing the boot files, and 0 for not. + + "$scriptDir"CheckDiskMicrocode.sh "${targetDisk}" "${diskSigCheck}" + diskupdate=$? + + + # Cancelled this as all it does is read the GPTdiskProtectiveMBR + # and the GPTdiskGPTHeader and look to see if they're blank + # then make a note of the MD5 for eachÉ But they're never used? + + #"$scriptDir"FindPartitionBootcode.sh "${targetDeviceRaw}" + + + # check the format of the selected partition. + # the following script returns 1 if HFS + # the following script returns 2 if MSDOS + # the following script returns 0 if nothing + + "$scriptDir"CheckFormat.sh "${targetDevice}" + espformat=$? + + + # Add DescriptionÉÉ..ÉÉÉ. + + "$scriptDir"CheckPartitionScheme.sh "${targetDisk}" + + + # If diskupdate is flagged as 1 then the stage 0 loader can be written to the MBR + if [ ${diskupdate} = 1 ]; then + "$scriptDir"WriteChameleonStage0.sh "${diskupdate}" "${diskSigCheck}" "${stage0Loader}" "${stage0LoaderDualBoot}" "${targetDisk}" "${targetVolume}" + fi + + # Write the stage 1 loader to the partition boot sector + "$scriptDir"WriteChameleonStage1.sh "${espformat}" "${stage1LoaderHFS}" "${stage1LoaderFAT}" "${3}" "${targetDeviceRaw}" "${targetVolume}" + + # Write the stage 2 loader to the root of the selected partition + "$scriptDir"WriteChameleonStage2.sh "${espformat}" "${stage2Loader}" "${3}" "${targetDevice}" "${targetVolume}" + + # Set the active partition ONLY if Windows is not installed + "$scriptDir"SetActivePartition.sh "${espformat}" "${diskSigCheck}" "${targetDiskRaw}" "${targetSlice}" "${targetVolume}" + + fi +fi + +exit 0 Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/MainStandardPostinstall.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/UnMountEFIvolumes.sh =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Scripts/UnMountEFIvolumes.sh (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Scripts/UnMountEFIvolumes.sh (revision 215) @@ -0,0 +1,32 @@ +#!/bin/bash + +echo "===============================================" +echo "Unmount all volumes named EFI" +echo "*****************************" + +# loop through and un-mount ALL mounted EFI system partitions - Thanks kizwan + +attempts=1 +while [ "$( df | grep EFI )" ] && [ "${attempts}" -lt 5 ]; do + echo "Unmounting $( df | grep EFI | awk '{print $1}' )" + umount -f $( df | grep EFI | awk '{print $1}' ) + attempts=$(( ${attempts} + 1 )) +done +if [ ${attempts} = 5 ]; then + echo "failed to unmount EFI System Partition." + echo "-----------------------------------------------" + echo "" + echo "" + echo "" + exit 1 +fi + +echo "-----------------------------------------------" +echo "" +echo "" +echo "" + +exit 0 + + + Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Scripts/UnMountEFIvolumes.sh ___________________________________________________________________ Added: svn:executable + * Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot1f32 =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot1f32 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/bdmesg =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/bdmesg ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot1he =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot1he ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/chain0 =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/chain0 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot0 =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot0 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot0hfs =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot0hfs ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/fdisk440 =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/fdisk440 ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/cdboot =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/cdboot ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot1h =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot1h ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot1hp =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/i386/boot1hp ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/Kexts/FakeSMC.kext/Contents/MacOS/FakeSMC =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Kexts/FakeSMC.kext/Contents/MacOS/FakeSMC ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Index: branches/blackosx/trunk/package/Main_Package_Elements/Kexts/FakeSMC.kext/Contents/Info.plist =================================================================== --- branches/blackosx/trunk/package/Main_Package_Elements/Kexts/FakeSMC.kext/Contents/Info.plist (revision 0) +++ branches/blackosx/trunk/package/Main_Package_Elements/Kexts/FakeSMC.kext/Contents/Info.plist (revision 215) @@ -0,0 +1,88 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + FakeSMC + CFBundleIdentifier + org.netkas.FakeSMC + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + FakeSMC + CFBundlePackageType + KEXT + CFBundleShortVersionString + 2.7.2 + CFBundleSignature + ???? + CFBundleVersion + 2.7.2 + IOKitPersonalities + + FakeSMC + + CFBundleIdentifier + org.netkas.FakeSMC + IOClass + FakeSMC + IOMatchCategory + IOACPIPlatformDevice + IOProviderClass + AppleACPIPlatformExpert + IOResourceMatch + ACPI + SMCKeys + + $Num + AQ== + ACID + REFCQ0VG + BALG + AAAAAAAA + LSOF + AQ== + LSSB + AQE= + MOST + AAAAAAAA + MSDS + AwAAAAAA + MSSP + AA== + NATJ + AA== + NVPR + AAAAAAAA + OSK0 + ourhardworkbythesewordsguardedpl + OSK1 + easedontsteal(c)AppleComputerInc + REV + ATAPAAAD + + debug + + smc-compatible + smc-napa + + + OSBundleCompatibleVersion + 2.7.2 + OSBundleLibraries + + com.apple.iokit.IOACPIFamily + 1.0.0d1 + com.apple.kpi.iokit + 9.0.0 + com.apple.kpi.libkern + 9.0.0 + com.apple.kpi.unsupported + 9.0.0 + + OSBundleRequired + Root + + Property changes on: branches/blackosx/trunk/package/Main_Package_Elements/Kexts/FakeSMC.kext/Contents/Info.plist ___________________________________________________________________ Added: svn:executable + *