Created
May 9, 2017 08:37
-
-
Save sirkkalap/86341d6a3c4ccfe258c96b3040991302 to your computer and use it in GitHub Desktop.
disable-oas.sh
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/sh -e | |
# Running this script will disable the on-access (real-time) scanner in F-Secure Anti-Virus for Mac | |
# while preserving the ability to use the on-demand (manual) scanner. | |
# | |
# Note that this *will* make the UI persistently tell you that there is a problem with real-time | |
# scanning. Which is true, because you disabled it. :-) | |
# | |
# NOTE THAT THIS WILL MAKE YOUR COMPUTER UNPROTECTED. DO THIS AT YOUR OWN RISK! | |
# NOTE THAT THIS WILL MAKE A BACKUP COPY IN YOUR "Documents" FOLDER. KEEP IT. | |
# NOTE THAT THIS IS AN UNSUPPORTED HACK. IT MAY STOP WORKING AT ANY TIME. | |
# | |
# To restore on-access (real-time) scanning, use https://gist.github.com/1021705 | |
cp /Library/LaunchDaemons/com.f-secure.fsavd.plist ~/Documents | |
sudo sed -i -e 's/<string>--oas=incoming<\/string>//' /Library/LaunchDaemons/com.f-secure.fsavd.plist | |
sudo launchctl unload /Library/LaunchDaemons/com.f-secure.fsavd.plist | |
sudo launchctl load /Library/LaunchDaemons/com.f-secure.fsavd.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment