Skip to content

Instantly share code, notes, and snippets.

@paalfe
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paalfe/c0cc4f9cebd1c5d0fed0 to your computer and use it in GitHub Desktop.
Save paalfe/c0cc4f9cebd1c5d0fed0 to your computer and use it in GitHub Desktop.
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