Web Auto Update (Linux + PHP)

In my project, the controller will be place at the remote site (like sabah & sawarak) and having sluggish internet connection. I need the controller to automatic update the firmware during the transfer.

How to do it?
  1. download the update script.

    wget http://192.168.0.8/ipvision-client/tools/autoupdate.php?id=IPV0001 -O autoupdate.sh

  2. Change the script file permission to allow execute.
    /bin/chmod 777 autoupdate.sh

  3. Execute the script

    bin/sh /tmp/autoupdate.sh

  4. update the status, so this operation not reoccur.

    wget http://192.168.0.8/ipvision-client/tools/autoupdate.php?id=IPV0001&action=done

  5. put the script on cron job.

0 comments:

 
Copyright © peyotest