Update Avira with a script

Discussion/announcements about test/beta releases of UBCD will be posted here.

Moderators: Icecube, StopSpazzing

Post Reply
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm

Update Avira with a script

#1 Post by Icecube » Wed Feb 04, 2009 2:13 pm

<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):

Code: Select all

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).
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Post Reply