Skip to content

Instantly share code, notes, and snippets.

@pajp pajp/disable-oas.sh
Created Jun 12, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.