From a69c3ba99be1502c50d3d1eb9ff66f135884ed76 Mon Sep 17 00:00:00 2001 From: Richard Tollerton Date: Wed, 23 Jul 2014 17:29:28 -0500 Subject: base-files: Don't export TZ if /etc/TZ exists While glibc/eglibc looks for the time zone in /etc/localtime, other libc alternatives (e.g. uclibc) may look for it in /etc/TZ. If /etc/TZ exists, don't fall back to setting TZ to "UTC" in /etc/profile. Signed-off-by: Richard Tollerton Signed-off-by: Ben Shelton Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-core/base-files/base-files/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile index 8eeaac3693..0b2d9d79e5 100644 --- a/meta/recipes-core/base-files/base-files/profile +++ b/meta/recipes-core/base-files/base-files/profile @@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin" EDITOR="/bin/vi" # needed for packages like cron test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. -if [ ! -e /etc/localtime ]; then +if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html # for an explanation of how to set this to your local timezone. export TZ -- cgit 1.2.3-korg