improvements to fixcatalinaimprovements to fixcatalina
This commit is contained in:
parent
5a42a909bb
commit
2dccccea8b
@ -162,10 +162,13 @@ TODISABLE+=( \
|
||||
'com.apple.telephonyutilities.callservicesd' \
|
||||
)
|
||||
|
||||
for agent in "${TODISABLE[@]}"
|
||||
do
|
||||
mv ./System/Library/LaunchAgents/${agent}.plist ./System/Library/LaunchAgents/${agent}.plist.bak
|
||||
echo "[OK] Agent ${agent} disabled"
|
||||
echo Disabling unwanted LaunchAgents...
|
||||
for agent in "${TODISABLE[@]}"; do
|
||||
if [[ -e "./System/Library/launchAgents/${agent}.plist" ]]; then
|
||||
mv "./System/Library/LaunchAgents/${agent}.plist" \
|
||||
"./System/Library/LaunchAgents/${agent}.plist.bak"
|
||||
echo "[OK] Agent ${agent} disabled"
|
||||
fi
|
||||
done
|
||||
|
||||
# Daemons to disable
|
||||
@ -198,8 +201,10 @@ TODISABLE+=( \
|
||||
'com.apple.netbiosd' \
|
||||
)
|
||||
|
||||
for daemon in "${TODISABLE[@]}"
|
||||
do
|
||||
mv ./System/Library/LaunchDaemons/${daemon}.plist ./System/Library/LaunchDaemons/${daemon}.plist.bak
|
||||
echo "[OK] Daemon ${daemon} disabled"
|
||||
for daemon in "${TODISABLE[@]}" ; do
|
||||
if [[ -e "./System/Library/LaunchDaemons/${daemon}.plist" ]]; then
|
||||
mv "./System/Library/LaunchDaemons/${daemon}.plist" \
|
||||
"./System/Library/LaunchDaemons/${daemon}.plist.bak"
|
||||
echo "[OK] Daemon ${daemon} disabled"
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user