Domanda su hwclock
Salve a tutti, ho un sistema che non prevede il mantenimento dell'ora ad apparecchio spento. Alcune distribuzioni sembra effettuino un salvataggio in locale dell'ora ricevuta da ntpd, ricaricandola al riavvio successivo se il server non è disponibile. In pratica il sistema congela l'ultima data e ora ricevuta (fra questi pure windows esegue la stessa operazione). Lasciando disalimentato il pc all'infinito, sembra (dico sembra soltanto) non perdere mai la memoria. In sostanza basta uno script che salva l'ultima data e ora in un file, ed al riavvio la reimposta nel sistema.
Questo su slitaz non sembra avvenire... qualche idea di come implementare uno script su rc.shutdown ed il relativo ripristino rcS di avvio.
È solo un'idea, ma magari può servire anche ad altri sui sistemi embedded privi di batteria tampone
-----------------------------------------------------------------------------------------------------------------------
.Question about hwclock
Hi all, I have a system that does not provide time keeping when the device is turned off. Some distributions seem to do a local save of the time received from ntpd, reloading it on next reboot if the server is unavailable. In practice, the system freezes the last date and time received (among them windows also performs the same operation). Leaving the pc unpowered indefinitely, it seems (I only say seems) to never lose the memory. Basically all it takes is a script that saves the last date and time in a file, and on reboot restore it in the system.
This on slitaz doesn't seem to happen...any idea how to implement a script on rc.shutdown and the associated rcS boot restore.
Just an idea, but maybe it may be of use to others on embedded systems without battery back-up