rendered paste body#!/bin/sh
"./Tools/SetHidden" "$3" \
"./hidden_MacOS9"
if [ -e "$3/System/Library/Caches/com.apple.kernelcaches" ]; then
/bin/rm -rf "$3/System/Library/Caches/com.apple.kernelcaches"
fi
if [ "x$CF_USER_DATA_STRING" != "x" ]; then
echo "$CF_USER_DATA_STRING" > "$3/var/root/.CFUserTextEncoding";
"$3/usr/sbin/chown" -f root:wheel "$3/var/root/.CFUserTextEncoding";
"$3/bin/chmod" -f 644 "$3/var/root/.CFUserTextEncoding";
fi
if [ -e "./SetNVRamForDebug" ] ; then
"./SetNVRamForDebug" "$1" "$2" "$3" "$4"
fi
bless -mount "$3/" -setBoot
diskutil repairPermissions "$3/"
exit 0