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
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
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:
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.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 ....
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
for those who need it:ntpdate_sh4.zip