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