Ergebnis 1 bis 4 von 4
  1. #1
    Erfahrener Benutzer
    Registriert seit
    12.03.2013
    Beiträge
    127
    Thanks
    144
    Thanked 85 Times in 38 Posts

    [Spark7162] NTP sync

    Is there a way in HDMU image to sync time and date from a NTP server automatically at boot if tuners are disconnected from dish?
    Obviously other than manual ssh commands every reboot...


    Thanks


  2. #2
    VIP Avatar von santa
    Registriert seit
    07.05.2012
    Beiträge
    7.844
    Thanks
    1.070
    Thanked 5.005 Times in 1.790 Posts
    There are many threads in German, you have to create a ownscript.sh and there must be a sleep and nptd comand.
    mfg santa

    GigaBlue Quad Plus -->Yamaha AV Receiver-->Panasonic Plasma

    derzeit noch in Betrieb:
    IPBox 9000, Technisat Digicorder HDS2+, AT 500


  3. The Following User Says Thank You to santa For This Useful Post:



  4. #3
    Developer
    Registriert seit
    18.07.2012
    Ort
    Ridderkerk, Niederlande
    Beiträge
    634
    Thanks
    144
    Thanked 713 Times in 304 Posts
    Yes there is. apart from the solution given above, you can also use this one. It is an excerpt from the routine /etc/init.d/rcS I use for Spark7162's:

    Code:
    ....
    # Try and synchronise time
    if [ -e /sbin/ntpdate ]; then
       echo "Set internet time"
       /sbin/ntpdate de.pool.ntp.org
       /bin/fp_control -sst &
    fi
    
    echo "Start Enigma2"
    echo "Start SH4 Enigma2" > /dev/vfd
    
    until false
    do
    ....
    Insert this part just before Enigma2 is started in your /etc/init.d/rcS. It is easy to find, look for until false.... The line with ntpdate synchronizes the system time with the internet time server (in this case de.pool.ntp.org, you can use another if you want). The next line with fp_control copies the system time to the front panel clock. At this point the display clock should adjust to the correct time, provided the receiver can reach the internet. There is no need for sleep statements; this only is required if you want to use a transponders time. Then you must delay until it is pretty certain the receiver has tuned to the startup program and a dish is connected.

    Regards,

    Audioniek.
    Receivers: Rebox: RE-4000, 8000, 9000, 2200, 2210, 2220, 4200, 4210, 4220, 8220, 8500, SAB Unix Triple, Golden Media Spark TripleX, Amiko Alien 2+, Sogno Spark Revolution, Kathrein UFS910(1 & 14W)/912/913/922(CX24116 & AVL2108 tuners), Vizyon revolution 820HD PVR, AB IPBox 91HD/9000HD/9000HD rev.2, Xsarius Alpha HD10, nBox BKSA/BSLA/BXZB/BZZB, Vitamin HD 5000
    Sats: Astra 1, 2 & 3, Hotbird
    Main activity: building my own E2 images for Fortis receivers

  5. The Following 2 Users Say Thank You to Audioniek For This Useful Post:



  6. #4
    Erfahrener Benutzer
    Registriert seit
    12.03.2013
    Beiträge
    127
    Thanks
    144
    Thanked 85 Times in 38 Posts
    for those who need it:ntpdate_sh4.zip

  7. The Following 2 Users Say Thank You to miciomax For This Useful Post:



Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •