This file contains hidden or 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
#!/bin/bash | |
# this is not following best practices | |
# removing explicit familyControlsEnabled keys to mitigate high parentalcontrolsd cpu usage | |
rm -rf /Library/Managed\ Preferences/com.apple.applicationaccess.new.plist | |
rm -rf /Library/Managed\ Preferences/*/com.apple.applicationaccess.new.plist | |
if pgrep 'parentalcontrolsd'; then | |
killall -STOP parentalcontrolsd | |
fi |