52 lines
1.5 KiB
Bash
Executable File
52 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set +x
|
|
|
|
FILES=""
|
|
|
|
## Remove Internet Providers / Sharing / iCloud
|
|
FILES+="
|
|
/System/Library/PreferencePanes/iCloudPref.prefPane
|
|
/System/Library/InternetAccounts
|
|
"
|
|
|
|
## Remove all crash reporting daemons
|
|
FILES+="
|
|
/System/Library/LaunchAgents/com.apple.ReportPanic.plist
|
|
/System/Library/CoreServices/ReportPanic.app/Contents/MacOS/ReportPanic
|
|
/System/Library/LaunchAgents/com.apple.ReportCrash.Self.plist
|
|
/System/Library/CoreServices/ReportCrash
|
|
/System/Library/LaunchAgents/com.apple.ReportCrash.plist
|
|
/System/Library/LaunchAgents/com.apple.ReportGPURestart.plist
|
|
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ReportGPURestart
|
|
/System/Library/LaunchAgents/com.apple.rtcreportingd.plist
|
|
/usr/libexec/rtcreportingd
|
|
/System/Library/LaunchDaemons/com.apple.SubmitDiagInfo.plist
|
|
/System/Library/CoreServices/SubmitDiagInfo
|
|
/System/Library/LaunchAgents/com.apple.diagnostics_agent.plist
|
|
/System/Library/CoreServices/diagnostics_agent
|
|
"
|
|
|
|
## Remove all Spotlight network support
|
|
FILES+="
|
|
/System/Library/LaunchAgents/com.apple.metadata.SpotlightNetHelper.plist
|
|
/System/Library/PrivateFrameworks/ParsecUI.framework
|
|
"
|
|
|
|
## Remove CommCenter
|
|
FILES+="
|
|
/System/Library/Frameworks/CoreTelephony.framework
|
|
/System/Library/LaunchAgents/com.apple.CommCenter-osx.plist
|
|
/System/Library/LaunchDaemons/com.apple.CommCenterRootHelper.plist
|
|
"
|
|
|
|
## remove spotlight suggestions/helper
|
|
FILES+="
|
|
/System/Library/LaunchAgents/com.apple.suggestd.plist
|
|
/System/Library/PrivateFrameworks/CoreSuggestions.framework
|
|
"
|
|
|
|
for FILE in $FILES ; do
|
|
rm -rf "$3/$FILE"
|
|
done
|