-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm using a script like that on PirateBoxScripts to store the time on the USB stick in a five minute intervall. See: https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver/blob/release-1.0/piratebox/piratebox/bin/timesave.sh (only one part)
The reason for doing this is that forum-software like kareha (imageboard alike) need a linear "timeline". If you don't have a normal time, new post will be mixed up with old ones. In a case, where you can't get to a ntp server, like on offline-usage on PirateBox, you need a small work-around to get an idea of a working time. True, the time is not correct, but in situations of a small downtime, like a reboot, you only have the time difference of the last save intervall. In the case of 30days, well it is not that useful like 5 Minutes, but the time-gap depends on the specific setup (and how much stress you want to put to the storage medium). Just, my idea of and why bringing that kind of feature into OpenWRT. best wishes Matthias But, any "write-it-to-disc" solution should be optional and is in no situation ideal. On 01/01/2014 05:36 PM, etienne.champet...@free.fr wrote: > Hi > > ----- Mail original ----- >> De: "Bastian Bittorf" <bitt...@bluebottle.com> À: "OpenWrt >> Development List" <openwrt-devel@lists.openwrt.org> Envoyé: >> Dimanche 29 Décembre 2013 22:18:07 Objet: Re: [OpenWrt-Devel] >> [PATCH] Add sysfixtime init script, replacement of luci_fixtime >> >> * Etienne CHAMPETIER <etienne.champet...@free.fr> [29.12.2013 >> 22:09]: >>> Save time by touching /etc/config/sysfixtime, so it's included >>> in backups Introduce save_time_interval config (in days) to >>> choose how often time is saved to flash (default 30) Use >>> busybox ntpd -S option so time is saved regularly and not only >>> on clean shutdown/reboot Fix time on startup if system time is >>> inferior to stored time >> >> what is the usecase of this? > > _______________________________________________ openwrt-devel > mailing list openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlLEZtwACgkQ7JXKWHWrFtNakACgkkkjfVzy1gxs7BCLN+EefXae QJEAoNb36Lo2Mg7tLWzsooqeDba9hT3V =TRIj -----END PGP SIGNATURE----- _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel