# Writes Chameleon stage 0 loader.␊ |
␊ |
# Receives disksignature: 0 = Windows not found, 1 = Windows Found␊ |
# Receives stage0Loader: Name of file - boot0␊ |
# Receives stage0Loaderdualboot: Name of file - boot0hfs␊ |
# Receives stage0Loader: for example, boot0␊ |
# Receives stage0Loaderdualboot: for example, boot0md␊ |
# Receives targetDisk: for example, /dev/disk3␊ |
# Receives targetVolume: for example, /Volumes/USB␊ |
# Receives scriptDir: The location of the main script dir.␊ |
|
␉␉␊ |
␉echo "Executing command: fdisk440 -u -f /usr/standalone/i386/${stage0Loader} -y ${targetDisk}"␊ |
␉"${scriptDir}"/Tools/fdisk440 -u -f "${targetVolume}"/usr/standalone/i386/${stage0Loader} -y ${targetDisk}␊ |
␉"$scriptDir"InstallLog.sh "${targetVolume}" "Written boot0 to ${targetDisk}."␊ |
␉"$scriptDir"InstallLog.sh "${targetVolume}" "Written ${stage0Loader to ${targetDisk}."␊ |
else␊ |
␉# Windows is also installed on the HDD so we need to write boot0hfs␊ |
␉# Windows is also installed on the HDD so we need to write boot0md␊ |
␉␉␊ |
␉echo "Executing command: /fdisk440 -u -f /usr/standalone/i386/${stage0Loaderdualboot} -y ${targetDisk}"␊ |
␉"${scriptDir}"/Tools/fdisk440 -u -f "${targetVolume}"/usr/standalone/i386/${stage0Loaderdualboot} -y ${targetDisk}␊ |
␉"$scriptDir"InstallLog.sh "${targetVolume}" "Written boot0hfs to ${targetDisk}."␊ |
␉"$scriptDir"InstallLog.sh "${targetVolume}" "Written ${stage0Loaderdualboot} to ${targetDisk}."␊ |
fi␊ |
␊ |
␊ |