wget for ota updates not understanding????????

  • 11 years ago

        ota
           over the air updates
    This script should be written using the c shell

    solution
    check the sever for frimware updates
    download an update file and its md5sum from the server.(usewget)
    check that the file downloaded matches its md5sum
    if it doesn't try downloading again
    apply the update you must know if the update finished successfull
    if so delete the update
    if not try updating again

    this is what i have>>>>>>

    #!/bin/sh
    cd /tmp
    dist=xxxxxxxx
    updateserver=xx.x.xx.xx
    echo "getting updates from server"
    wget http://$updateserver/$dist
    cd/
    tar xzf /tmp/$dist
    echo "running setup.sh"
    setup.sh

    i cannot seem to get this to work right
    i am new to this and just want to understand whats going wrong
    any help would be great  thanks......





























Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Engineers are all basically high-functioning autistics who have no idea how normal people do stuff.” - Cory Doctorow