diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2016-10-04 11:51:12 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-05 10:10:10 +0100 |
commit | dea70975dc7678dc3bc10c55f4ab0888cdcb7927 (patch) | |
tree | 5ee24e8fb9db6143da263c87627ddd544731f794 /meta | |
parent | d89e16d5cc7106ab8186c701d92c3cc90ba5720c (diff) | |
download | poky-dea70975dc7678dc3bc10c55f4ab0888cdcb7927.tar.gz |
base-files: don't export TZ="UTC" from /etc/profile
If no /etc/localtime (or /etc/TZ for uclibc) is found, then the libc
will default to UTC, so setting UTC as a fallback default via the TZ
environment variable is redundant.
Since having the TZ environment variable set causes /etc/localtime
to be ignored, it can cause confusion if /etc/localtime is added
interactively after /etc/profile has been run.
(From OE-Core rev: 98b6420952cbf73ddd1318f36c68d575c330eb71)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/base-files/base-files/profile | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile index a52bf89cfd..0a05e455ff 100644 --- a/meta/recipes-core/base-files/base-files/profile +++ b/meta/recipes-core/base-files/base-files/profile | |||
@@ -5,12 +5,6 @@ PATH="/usr/local/bin:/usr/bin:/bin" | |||
5 | EDITOR="vi" # needed for packages like cron, git-commit | 5 | EDITOR="vi" # needed for packages like cron, git-commit |
6 | test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. | 6 | test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. |
7 | 7 | ||
8 | if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then | ||
9 | TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html | ||
10 | # for an explanation of how to set this to your local timezone. | ||
11 | export TZ | ||
12 | fi | ||
13 | |||
14 | if [ "$HOME" = "ROOTHOME" ]; then | 8 | if [ "$HOME" = "ROOTHOME" ]; then |
15 | PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin | 9 | PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin |
16 | fi | 10 | fi |