<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
    <options type="firmware" customize="never" hostArchitectures="i386" rootVolumeOnly="true"/>
    <title>SU_TITLE</title>
    <script>
</script>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <script>
function InstallationCheck(prefix) {
	var models = ['iMac12,1','iMac12,2',];
	var model = system.sysctl('hw.model');
	if (models.indexOf(model) == -1) {
		my.result.message = system.localizedString('ERROR_1');
		my.result.type = 'Fatal';
		return false;
	}
	var versions = ['IM121.88Z.0047.B00.1102091756','IM121.88Z.0047.B0A.1104221555','IM121.88Z.0047.B1D.1110171110',];
	var rom = system.ioregistry.fromPath('IODeviceTree:/rom@0');
	if (!rom || !(rom.version) || versions.indexOf(rom.version) == -1) {
		my.result.message = system.localizedString('ERROR_1');
		my.result.type = 'Fatal';
		return false;
	}
	if (system.compareVersions(system.version.ProductVersion, '10.6.8') &lt; 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_0', '10.6.8');
		my.result.type = 'Fatal';
		return false;
	}
	my.result.message = system.localizedString('ERROR_1');
	if (!LogicalOr0("/")) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function LogicalOr0(prefix) {
	if (LogicalAnd1(prefix) || PlistCheck4(prefix)) {
		return true;
	}
	return false;
}
function LogicalAnd1(prefix) {
	if (PlistCheck2(prefix) &amp;&amp; PlistCheck3(prefix)) {
		return true;
	}
	return false;
}
function PlistCheck2(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.7') >= 0) {
		return false;
	}
	return true;
}
function PlistCheck3(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.6.8') &lt; 0) {
		return false;
	}
	return true;
}
function PlistCheck4(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.7.3') &lt; 0) {
		return false;
	}
	return true;
}
function VolumeCheck(prefix) {
	if (system.env.OS_INSTALL == 1) return true;
	var hasOS = system.files.fileExistsAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist");
	if (!hasOS || system.compareVersions(my.target.systemVersion.ProductVersion, '10.6.8') &lt; 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_0', '10.6.8');
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
</script>
    <platforms>
        <client arch="i386"/>
        <server arch="i386"/>
    </platforms>
    <choices-outline ui="SoftwareUpdate">
        <line choice="su"/>
    </choices-outline>
    <choices-outline>
        <line choice="su"/>
    </choices-outline>
    <choice id="su" title="SU_TITLE" versStr="SU_VERS" description="SU_DESCRIPTION" description-mime-type="text/html" secondaryDescription="SU_SERVERCOMMENT" suDisabledGroupID="iMacEFIUpdate1.9" start_selected="true">
        <pkg-ref id="iMacTwo" auth="Root" packageIdentifier="com.apple.pkg.iMac2011EFIUpdate" onConclusion="RequireRestart">iMac2011EFIUpdate.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie oprogramowania EFI iMaca";
"SU_VERS" = "1.9";
"SU_SERVERCOMMENT" = "Dla komputerów klienckich oraz serwerów";
"SU_DESCRIPTION" = '<HTML><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <title></title>
  <style type="text/css">
	p {margin-left: 0.0px; margin-top: 0.0px; font: 11.0px "Lucida Grande";}
  </style>
</head>
<body>
<p>
Uaktualnienie oprogramowania sprzętowego EFI 1.9 iMaca
</p>
<p>
To uaktualnienie zawiera kilka poprawek podnoszących stabilność iMaca (z początku 2011 roku) i jest zalecane dla wszystkich użytkowników.
</p>
<p>
To uaktualnienie podnosi niezawodność uruchamiania systemu z sieci, rozwiązuje problem, który mógł uniemożliwiać uwierzytelnienie HDCP po ponownym uruchomieniu, a także usuwa błąd dotyczący wyboru urządzenia rozruchowego w przypadku podłączenia urządzenia pamięci masowej USB podczas pracy.
</p>
</body>
</html>
';
]]></strings>
    </localization>
    <readme mime-type="text/html"><![CDATA[<HTML><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <title></title>
  <style type="text/css">
	p {margin: 0.0px 0.0px 0.0px 0.0px; font: 11px Lucida Grande;}
  </style>
</head>
<body>
<p>Uaktualnienie EFI iMaca uaktualni oprogramowanie sprzętowe EFI na komputerze. Komputer musi być połączony przewodem zasilającym ze sprawnym źródłem zasilania. Po ponownym uruchomieniu komputera wyświetlony zostanie szary ekran z paskiem stanu wskazującym postęp uaktualniania. Uaktualnianie potrwa kilka minut. Nie przerywaj uaktualniania ani nie wyłączaj komputera w jego trakcie.
</p>
</body>
</html>
]]></readme>

	<pkg-ref id='iMacTwo' installKBytes='5435' version='1.9.0.0.1.1329761607'/>
</installer-gui-script>