Changing Timezones in SunOS 4.0
Jim Budler
jim at eda.com
Fri Jan 13 02:29:37 AEST 1989
SunOS 4 has a configurable timezone, and definately does not require
reconfiguring or reinstalling the OS to change the TZ.
In /usr/lib/zoneinfo (really /usr/share/lib/zoneinfo) are files with
exotic names like PST8PDT, or Australia/NSW
Also in /usr/lib/zoneinfo is a symbolic link `localtime' which points to
the local time zone file ( in my case PST8PDT ). Change the link to point
to a different time zone.
In the case of the 386i localtime points to /etc/localtime, which point
back to /usr/share/lib/zoneinfo/XXX, because of the read only /usr. Of
course, if you want to create a NEW timezone on a 386i you'll have some
difficulty creating the file in /usr/lib/zoneinfo 8^) Change
/etc/localtime to point to the new timezone.
After changing the timezone this way you should (as root) execute
/usr/etc/tzsetup. This converts the in kernel value, used only by 3.X
binaries to match the new value.
jim
--
Jim Budler address = uucp: ...!{decwrl,uunet}!eda!jim OR domain: jim at eda.com
More information about the Comp.sys.sun
mailing list