mirror of
https://github.com/thewesker/osx-patcher.git
synced 2025-12-20 04:11:05 -05:00
Fix 10.11 security update issue
This commit is contained in:
@@ -331,6 +331,12 @@ Patch_Volume()
|
|||||||
Output_Off rm "$volume_path"/System/Library/CoreServices/PlatformSupport.plist
|
Output_Off rm "$volume_path"/System/Library/CoreServices/PlatformSupport.plist
|
||||||
echo -e $(date "+%b %m %H:%M:%S") ${move_up}${erase_line}${text_success}"+ Patched platform support check."${erase_style}
|
echo -e $(date "+%b %m %H:%M:%S") ${move_up}${erase_line}${text_success}"+ Patched platform support check."${erase_style}
|
||||||
|
|
||||||
|
if [[ $volume_version_short == "10.11" ]]; then
|
||||||
|
echo -e $(date "+%b %m %H:%M:%S") ${text_progress}"> Patching kernel."${erase_style}
|
||||||
|
cp "$resources_path"/Kernels/"$volume_version_short"/kernel "$volume_path"/System/Library/Kernels
|
||||||
|
echo -e $(date "+%b %m %H:%M:%S") ${move_up}${erase_line}${text_success}"+ Patched kernel."${erase_style}
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e $(date "+%b %m %H:%M:%S") ${text_progress}"> Patching kernel flags."${erase_style}
|
echo -e $(date "+%b %m %H:%M:%S") ${text_progress}"> Patching kernel flags."${erase_style}
|
||||||
sed -i '' 's|<string></string>|<string>kext-dev-mode=1 mbasd=1</string>|' "$volume_path"/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
|
sed -i '' 's|<string></string>|<string>kext-dev-mode=1 mbasd=1</string>|' "$volume_path"/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
|
||||||
echo -e $(date "+%b %m %H:%M:%S") ${move_up}${erase_line}${text_success}"+ Patched kernel flags."${erase_style}
|
echo -e $(date "+%b %m %H:%M:%S") ${move_up}${erase_line}${text_success}"+ Patched kernel flags."${erase_style}
|
||||||
|
|||||||
BIN
resources/patch/Kernels/10.11/kernel
Executable file
BIN
resources/patch/Kernels/10.11/kernel
Executable file
Binary file not shown.
Reference in New Issue
Block a user