Ultimate Boot CD

Update Avira with a script
Page 1 of 1

Author:  Icecube [ Wed Feb 04, 2009 2:13 pm ]
Post subject:  Update Avira with a script

<Recovered this part of a topic from google cache. It seems that the topic was deleted.>

Download unxutils:
http://sourceforge.net/project/showfile ... up_id=9328

Extract: cat, grep, read, sh and wget

Save the following script (avira-update-check.sh):
OLDVERSION=`cat avira-last.txt`

wget -O avira-update.txt http://www.avira.com/en/support/support_downloads.html

NEWVERSION=`grep -A 2 "Avira AntiVir Rescue System" avira-update.txt | grep -m 1 -o "Version : [[:digit:]]*" | grep -o "[[:digit:]]*"`

if [ "$OLDVERSION" = "$NEWVERSION" ]; then
    echo "No update"
    echo "Updated version available"
    echo "Download now? (Press any key to continue, press 'Ctrl+C' to abort)"
    pause > nul
    wget -O "avira-$NEWVERSION.iso" http://dlpro.antivir.com/down/vdf/rescuecd/rescuecd.iso
    echo "$NEWVERSION" > avira-last.txt

Run the script with sh.exe avira-update-check.sh.

It works on linux (replaced the pause > nul command with the read command). Not sure if the pause > nul command can be used in the sh script.

The iso will be saved as: avira-<VERSION_NUMBER>.iso
e.g: avira-20081224125550.iso

@ Victor
I will try to make a script that will update the avira definition files and other avira files (some 7z stuff).

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group