Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sirkkalap/86341d6a3c4ccfe258c96b3040991302 to your computer and use it in GitHub Desktop.
Save sirkkalap/86341d6a3c4ccfe258c96b3040991302 to your computer and use it in GitHub Desktop.
disable-oas.sh
#!/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