DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-06-03 20:22:54

jh
New member
Registered: 2008-06-03
Posts: 2

Clock drift, Timezone, Daylight savings time

I see scattered appends on these subjects, but I have found no consensus.

The 1.05 firmware (which is not at the dlink.co.uk site) will allow one to write in the ntp server's hostname; 1.04 did not.

-----

Dlink's software seems to ignore daylight savings time in the TZ environment variable (which starts life out in /etc/TZ).  Changing this file lasts only until the next boot.

When the box is booted, the date command reports the time an hour ahead of the actual time (during the summer months).

This is what I did in fun_plug:

export TZ=GMT-0BST-1,M3.5.0/02:00:00,M10.5.0/03:00:00
echo "$TZ" > /etc/TZ 

This has effect only on processes initiated by fun_plug and the file is restored on reboot.

To reset the clock to the correct value (I've omitted output redirects):

sntp -V -P no -r -c 1 -d 10 time-a.nist.gov

To keep the clock synchronised:

exec sntp -V -a -x 120 -f $VAR/sntp.save time-a.nist.gov

-----

In the saved configuration settings I see this, which I assume to be the source data for creating /etc/TZ:

CF-TIMEZONE = "0"
CF-METHOD = "3"   

Doesn't seem to leave any way to inject the correct timezone variable.

I assume there is no way to set the TZ variable correctly short of flashing the initial rom file system.  Is this correct?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB