Auto updater questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • on_the_jazz
    DK Veteran
    • Jul 2008
    • 557

    #1

    Auto updater questions

    Obviously zaf has kinda beaten me to it but I was thinking for those who don't want to manually do the update with a program on their pc. Is there a way to get the dbox to automatically update the k*ys from the internet?

    Well so far I'm writing very simple code for every provider. All I need is someone to suggest how I can get the autoroll mechanism to trigger a script when the keys are rolled rather than trying to write them. Or add a dbox menu option where the user selects it to trigger the script.

    An example of the script for ROM7 00 for pure N*L would be:

    wget KEYS
    sed '23q;d' keymaster.html > tempkey
    sed 's/.........$//' tempkey > tempkey00
    sed -i 's/\(.\{37\}\)//' tempkey00
    cat tempkey00 | sed 's/ //g' > tempkey00
    read tempkey002 < tempkey00
    echo "tempkey001->[${tempkey002}]"
    cat Keylist.txt | sed "s/00 ................/N 5401 00 $tempkey002 ;ROM7 AU Key Time Wed Nov 26 10:53:52 2008/"

    This can be tested by copying Keylist.txt to your /tmp directory. Then telnetting to the dbox, go to /tmp and copy this code line by line. This assumes you only have the 2 ROM 7's (00 and 01) in your keylist.

    Once we can make AU trigger it or set up a cron or something we can just save these lines to a file with #!/bin/sh at the top and have it run automatically.

    Any input would be great.

    edit: where it says "KEYS" at the top, its actually the full url but the forum has made it into a link.
    Last edited by on_the_jazz; 29 November, 2008, 14:31.
Working...