[LEDE-DEV] [PATCH] base-files: sysfixtime: Allow system time in local timezones

Petr Štetiar ynezz at true.cz
Fri Oct 21 01:02:40 PDT 2016

Daniel Dickinson <lede at cshore.thecshore.com> [2016-10-20 16:49:48]:


> I don't see wanting an embedded system to be like a desktop to be a
> reasonable justification.

we're talking here about quadcore i.MX6, 2GB RAM and Vivante GPU.  It's usable
as embedded desktop I would say.

> It doesn't serve any useful purpose that I can see.

As you can see, some people have different use cases.

> Also with there is daylight savings then when daylight savings kicks in
> you've got to change the clock which is *ugly* and waste of resources on an
> embedded device.

I've been using CEST timezone for system time (battery backed RTC in UTC) in
some OpenWRT based projects since 2014.  I'm not aware about any of such
problems and you of course doesn't need to change the clock. It's done
automagically for you.

	commit 215c43acc5803e82e249458e9093dba62882ff5d
	Author: Petr Štetiar <ynezz at true.cz>
	Date:   Tue May 27 15:58:40 2014 +0200

	    base-files: Add hwclock init script
	    Signed-off-by: Petr Štetiar <ynezz at true.cz>

	diff --git a/package/base-files/files/etc/init.d/hwclock b/package/base-files/files/etc/init.d/hwclock
	new file mode 100755
	index 0000000..07eef7e
	--- /dev/null
	+++ b/package/base-files/files/etc/init.d/hwclock
	@@ -0,0 +1,15 @@
	+#!/bin/sh /etc/rc.common
	+start() {
	+       if [ -c /dev/rtc0 ]; then
	+               hwclock -u -s -f /dev/rtc0
	+       fi
	+stop() {
	+       if [ -c /dev/rtc0 ] ; then
	+               hwclock -u -w -f /dev/rtc0
	+       fi

-- ynezz

More information about the Lede-dev mailing list