Lonnie Abelbeck wrote:
> Darrick,
>
> On Aug 4, 2006, at 2:42 PM, Darrick Hartman wrote:
>
>> The latest svn that Kristian has committed (191 astlinux-trunk) will
>>
>> properly set /etc/TZ if the TIMEZONE variable is set in rc.conf. What
>>
>
> 282 if [ "$TIMEZONE" ]
> 283 then
> 284 echo "$TIMEZONE" > /tmp/etc/TZ
> 285 fi
>
> /tmp/etc/TZ wants "CST6CDT", not "America/Chicago"
>
> So if we give up on setting localtime
>
> if [ "$TIMEZONE" ]
> then
> cp /mnt/opt/zoneinfo/$TIMEZONE /tmp/etc/localtime
> fi
>
> and redefine
> TIMEZONE=CST6CDT
>
> We only need one variable.
>
> But, if we want to play it safe and do set localtime, then we two variables
>
> TIMEZONE=America/Chicago
>
> and
>
> TIMEZONE_TZ=CST6CDT
>
> You guys be the judge.
>
> Lonnie
>
Lonnie,
I suppose the "safe" option would be to create two variables. It seems
to me that only *broken* apps (or those with special requirements, like
Asterisk) are going to read /etc/localtime directly instead of using the
library like they should. I suppose that while we are including
/usr/share/zoneinfo we might as well set /etc/localtime just in case.
Thanks again for your help!
--
Kristian Kielhofner
_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL
PROTECTED]