Browse Source

micropatcher/unpatch: Add/remove trampoline

The trampoline itself needs further changes before it will actually
function.
pull/54/head
Barry K. Nathan 5 years ago
parent
commit
fe83ce8bb5
  1. 11
      micropatcher.sh
  2. 6
      unpatch.sh

11
micropatcher.sh

@ -163,6 +163,17 @@ then
fi
cat payloads/com.apple.Boot.plist > "$VOLUME/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"
# Add the trampoline.
echo 'Installing trampoline...'
TEMPAPP="$VOLUME/tmp.app"
mv -f "$APPPATH" "$TEMPAPP"
cp -r payloads/trampoline.app "$APPPATH"
mv -f "$TEMPAPP" "$APPPATH/Contents/MacOS/InstallAssistant.app"
cp "$APPPATH/Contents/MacOS/InstallAssistant.app/Contents/Resources/InstallAssistant.icns" "$APPPATH/Contents/Resources/InstallAssistant.icns"
cp "$APPPATH/Contents/MacOS/InstallAssistant" "$APPPATH/Contents/MacOS/InstallAssistant_plain"
cp "$APPPATH/Contents/MacOS/InstallAssistant" "$APPPATH/Contents/MacOS/InstallAssistant_springboard"
touch "$APPPATH"
# Copy the shell scripts into place so that they may be used once the
# USB stick is booted.
echo 'Adding shell scripts...'

6
unpatch.sh

@ -85,6 +85,12 @@ else
fi
echo
echo 'Removing trampoline.'
TEMPAPP="$VOLUME/tmp.app"
mv -f "$APPPATH/Contents/MacOS/InstallAssistant.app" "$TEMPAPP"
rm -rf "$APPPATH"
mv -f "$TEMPAPP" "$APPPATH"
echo 'Removing kexts, shell scripts, and patcher version info.'
# For v0.0.9 and earlier
rm -rf "$VOLUME"/*.kext

Loading…
Cancel
Save