Skip to content

Instantly share code, notes, and snippets.

@paalfe
Last active August 29, 2015 14:00
Embed
What would you like to do?
From http://unices.bitdefender.com/2011/11/01/bitdefender-antivirus-scanner-for-unices/. As many BitDefender Antivirus Scanner for Unices users have noticed, attempting to run the command line tool (bdscan) or the GUI application will result in an unexpected segmentation fault. The issue is caused by an incompatibility between the latest antivir…
#!/bin/bash
cat /opt/BitDefender-scanner/var/lib/scan/versions.dat.* | \
awk '/bdcore.so.linux/ {print $3}' | \
while read bdcore_so; do
touch /opt/BitDefender-scanner/var/lib/scan/$bdcore_so;
bdscan --update;
mv /opt/BitDefender-scanner/var/lib/scan/bdcore.so \
/opt/BitDefender-scanner/var/lib/scan/bdcore.so.old;
rm /opt/BitDefender-scanner/var/lib/scan/bdcore.so;
ln -s /opt/BitDefender-scanner/var/lib/scan/$bdcore_so \
/opt/BitDefender-scanner/var/lib/scan/bdcore.so;
chown bitdefender:bitdefender \
/opt/BitDefender-scanner/var/lib/scan/$bdcore_so;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment