Log in

Bekijk de volledige versie : How to set the correct time zone on the WL-500gP?



Bob_Swede
02-07-2008, 06:55
I have installed the latest Oleg firmware on my routera couple of days ago.

Now I have noted that its time is 2 hours off (if I touch a file via Putty its timestamp will be 2 hours earlier than my actual time). The time sync seems to work according to the logs so this must be a timezone problem.

But when I go into the admin GUI of the router I find only one place where the time zone is set and this amazingly shows the timezone as being in Midway, GMT-11 hours!
So that is probably not showing the correct setting as it is....

What is the correct way to set this? I am on central European time with daylight savings active (Stockholm).

avberk
04-07-2008, 10:41
Maybe this will help you on the right track:

-ipkg update
-ipkg install tz
-cp /opt/share/zoneinfo/Europe/Stockholm /etc/localtime (case sensitive)
-Add /etc/localtime to /usr/local/.files
-flashfs save && flashfs commit && flashfs enable
-reboot
See also: http://www.nslu2-linux.org/wiki/Unslung/TimeZoneUpdate

Bob_Swede
06-07-2008, 07:56
Maybe this will help you on the right track:

-ipkg update
-ipkg install tz
-cp /opt/share/zoneinfo/Europe/Stockholm /etc/localtime (case sensitive)
-Add /etc/localtime to /usr/local/.files
-flashfs save && flashfs commit && flashfs enable
-reboot
See also: http://www.nslu2-linux.org/wiki/Unslung/TimeZoneUpdate

Thanks, but being a bit dense and new to Linux I had some trouble:
-ipkg update OK
-ipkg install tz OK
Now I checked if /etc/localtime exists by doing ls -l /etc/localtime and it does NOT! So my question is:

Am I supposed to first mkdir /etc/localtime before I copy the Stockholm file or is the idea to put Stockholm into /etc with a changed name (localtime)????
ls -l /etc/l* reveals that at least there is at present no such file in existence.

About http://www.nslu2-linux.org/wiki/Unslung/TimeZoneUpdate
The link you provided was a bit over my head, especially the part "Use the following script".
How does one "use a script" on the ASUS????
I have used Putty to follow a cook-book path from a guide to install the OLEG software and attach to my Topfield PVRt digital TV receiver, but I need rather exact command proposals (like the ones you actually showed in your reply)..
So I would be grateful for any insight in the "use script" part.

If I toddle along myself I would create a file and edit it to put the showed contents into it by these steps (derived by analogue from the guide):

touch /usr/local/sbin/timezone-update (creates the file)
chmod +x /usr/local/sbin/timezone-update (makes it executable)
nano /usr/local/sbin/timezone-update (edits the now empty file)

now I would copy the text of the script in Windows, then in Putty I would use the right button of my mouse to paste it into nano

next save the file and exit nano

At this point when I have created the file (I am actually at this point now), is the next step simply:
/usr/local/sbin/timezone-update :confused:

I don't want to break things by doing the wrong commands...
I have done the flashfs things to keep my work so far but not the "use script" part yet.
Also, the text I put into the file is the complete contents of the yellow box in the page you linked to. It looks peculiar because about in the middle there is an exit command so it seems to me like the remaining part will not be used, is this OK?

/Bob

avberk
07-07-2008, 14:42
'localtime' is a copy of the file 'Stockholm'.

Thus you need to copy the Stockholm file in the /etc folder
and then rename it to localtime.

The link i have put in was just for reference. You don't need to look at it. forget about the script.

Tip:
Use 'winscp' to interface with your wl500gp router. Makes
life a lot simpler. Use the 'scp' protocol to connect.
http://winscp.net/eng/index.php