-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mac OS Sonoma 14.3.1 update && fixed typo in RestrictEvents kext NVRA…
…M flag revpatch => now incremental OS updates should work fine after reverting OCLP root patches (if were enabled)
- Loading branch information
1 parent
c15e2ab
commit cf46a88
Showing
5 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
DIR_PREFIX=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | ||
CONFIG_FILE="${DIR_PREFIX}/../../EFI/OC/config.plist" | ||
VARIABLES_FILE="${DIR_PREFIX}/platformInfo" | ||
|
||
ensure_file_exists() { | ||
if [ ! -e $1 ]; then | ||
echo "File '$1' not found!" | ||
|
||
exit 1 | ||
fi | ||
} | ||
|
||
apply_plutil_value() { | ||
plutil -replace "$1" "-$2" "$3" $CONFIG_FILE && echo "$1: $3 ($2)" | ||
} | ||
|
||
ensure_file_exists $CONFIG_FILE | ||
ensure_file_exists $VARIABLES_FILE | ||
|
||
source $VARIABLES_FILE | ||
|
||
case "$1" in | ||
--apply) | ||
apply_plutil_value "PlatformInfo.Generic.MLB" "string" $MLB | ||
apply_plutil_value "PlatformInfo.Generic.ROM" "data" $ROM | ||
apply_plutil_value "PlatformInfo.Generic.SystemSerialNumber" "string" $SystemSerialNumber | ||
apply_plutil_value "PlatformInfo.Generic.SystemUUID" "string" $SystemUUID | ||
|
||
echo "APPLIED!" | ||
|
||
exit 0 | ||
;; | ||
--revert) | ||
apply_plutil_value "PlatformInfo.Generic.MLB" "string" "[REPLACE]" | ||
apply_plutil_value "PlatformInfo.Generic.ROM" "string" "[REPLACE]" | ||
apply_plutil_value "PlatformInfo.Generic.SystemSerialNumber" "string" "[REPLACE]" | ||
apply_plutil_value "PlatformInfo.Generic.SystemUUID" "string" "[REPLACE]" | ||
|
||
echo "REVERTED!" | ||
|
||
exit 0 | ||
;; | ||
*) | ||
echo "Nothing to do." | ||
|
||
exit 0 | ||
;; | ||
esac | ||
exit 0 | ||
|
||
|
||
|
||
|