aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/base-files/base-files/shr/profile
diff options
context:
space:
mode:
authorRoman Khimov <khimov@altell.ru>2010-07-02 04:57:34 +0000
committerRoman I Khimov <khimov@altell.ru>2010-07-29 23:54:22 +0400
commit3fe37352fc5df40ae1f275c4a586c4a50d336c3c (patch)
tree5646ffa425745167f777561e56c367272ff8f7c9 /recipes/base-files/base-files/shr/profile
parentd90020bab78b45729ae05fcdb993bcac99199767 (diff)
downloadopenembedded-3fe37352fc5df40ae1f275c4a586c4a50d336c3c.tar.gz
base-files: profile: don't set TZ if /etc/TZ is present
uClibc-based systems can have system-wide TZ in /etc/TZ, thus we shouldn't set TZ variable if it is present. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/base-files/base-files/shr/profile')
-rw-r--r--recipes/base-files/base-files/shr/profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/base-files/base-files/shr/profile b/recipes/base-files/base-files/shr/profile
index ff0418f397..6874e6c41c 100644
--- a/recipes/base-files/base-files/shr/profile
+++ b/recipes/base-files/base-files/shr/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