1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Possible issues for having auto updates on openatv

Discussion in 'Zgemma-Star H.2S' started by dsayers2014, Dec 18, 2016.

  1. dsayers2014

    dsayers2014 VIP Member

    10,067
    1,329
    133
    Male
    Hi I'm thinking of using a simple script that will do ota updates that I could use in crontimer so I could have ota updates happen weekly.

    My question is would it be a bad idea considering the recent ota issues or should it be fine?
     
    Last edited: Dec 18, 2016
  2. matieboy

    matieboy TK Veteran

    808
    21
    58
    I don't know anything about scripting but is there anyway it good be linked to the green light status to to check if it's stable, mind you I did an update on both yellow and green light status and it buggered my box up


    R.T.F.I
     
  3. dsayers2014

    dsayers2014 VIP Member

    10,067
    1,329
    133
    Male
    Not that I know of. For updates that have caused boot issues it's been discussed a few times you need to flash a later nightly build

    Sent from my SM-G925F using Tapatalk
     
  4. siilver

    siilver TK Veteran

    5,411
    986
    133
    Don't know if it would be a great thing, 9 out of 10 I'm sure it will be fine, but it's that one time is the problem
    but I would use it
     
  5. dsayers2014

    dsayers2014 VIP Member

    10,067
    1,329
    133
    Male
    Just bored so I'm tinkering all you need to do is ftp usr/script create a file call it what you want I've just called it openatvupdate.sh but you can name it anything as long as it has .sh at the end.

    Inside just have init 4 && opkg update && opkg upgrade && init 6

    you can test it by running the script using job manager then set a crontimer to run it weekly or daily.

    Only use this if you're on openatv and running a newer image. I won't be responsible for bricking your boxes

    Sent from my SM-G925F using Tapatalk
     
  6. siilver

    siilver TK Veteran

    5,411
    986
    133
    Il happily test it no worry

    i have never used cron manger
     
  7. dsayers2014

    dsayers2014 VIP Member

    10,067
    1,329
    133
    Male
    Ok unzip this View attachment openatvupdate.sh.zip ftp the openatvupdate.sh to usr/script.

    Test it in job manager

    Menu, Info panel, plugins, job manager you should see openatvupdate.sh press green to run
    Box will stop for a few minutes because it puts enigma2 to sleep then downloads the updates then reboots box.

    Now we need to set a crontimer to run the script


    Menu > Timers > CronTimers (you may be prompted to install 'busybox-cron' - install this - box will restart)


    Add a Cron Timer by pressing the Green button


    Run How Often ? - Daily or weekly whenever you want
    Time To Execute Command Or Script - Whatever you prefer, I have 00:00
    Command Type - predefined
    In command to run you should see the openatvupdate.sh
    Press green to save then check if it says start on autostart if not yellow to start and blue to autostart
    Now reboot box thats it it should run updates at the times you set