Skip to content

Instantly share code, notes, and snippets.

@pajp
Created June 12, 2011 16:02
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pajp/1021702 to your computer and use it in GitHub Desktop.
Save pajp/1021702 to your computer and use it in GitHub Desktop.
Disable real-time scanning on F-Secure Anti-Virus for Mac
#!/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