␊ |
␊ |
# Has the temporary directory /.Chameleon/Extra been created?␊ |
# If yes then transfer temporary com.apple.Boot.plist to destination.␊ |
# If yes then transfer temporary Extra folder to destination, ␊ |
# or merge temporary Extra folder in to an already existing Extra␊ |
# folder on the destination target.␊ |
␊ |
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 chosen, the package installer would have added 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: ditto ${3}/.Chameleon/Extra /Volumes/EFI/Extra"␊ |
␉␉ditto ${3}/.Chameleon/Extra /Volumes/EFI/Extra␊ |
␊ |
␉␉echo "Executing command: umount -f Volumes/EFI"␊ |
␉␉"$scriptDir"UnMountEFIvolumes.sh␊ |
|
␉␉␉rm -R -f /Volumes/EFI␊ |
␉␉fi␊ |
␉else␊ |
␉␉echo "Executing command: mv -f ${3}/.Chameleon/Extra ${3}/"␊ |
␉␉mv -f ${3}/.Chameleon/Extra ${3}/␊ |
␉␉echo "Executing command: ditto ${3}/.Chameleon/Extra ${3}/Extra"␊ |
␉␉ditto ${3}/.Chameleon/Extra ${3}/Extra␊ |
␉fi␊ |
␊ |
fi␊ |