summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-07-30 17:46:18 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-30 17:46:18 +0000
commit57f5ce0fcbc1b16efb95dd0c23b9cebe20be7d96 (patch)
treeb7a31f4754a273a6a1d8dffcc0ddd4bdbcace486 /packages
parentdf204694e5f56d20006f4d0a88363198d0db029a (diff)
Make /etc/profile use TZ variable if /etc/localtime not present. link in comments explain usage. Bump base-files rev.
Diffstat (limited to 'packages')
-rw-r--r--packages/base-files/base-files/profile6
-rw-r--r--packages/base-files/base-files_3.0.14.bb2
2 files changed, 7 insertions, 1 deletions
diff --git a/packages/base-files/base-files/profile b/packages/base-files/base-files/profile
index f24fec92ca..a4c16944b9 100644
--- a/packages/base-files/base-files/profile
+++ b/packages/base-files/base-files/profile
@@ -5,6 +5,12 @@ PATH="/usr/local/bin:/usr/bin:/bin"
EDITOR="/bin/vi" # needed for packages like cron
TERM="vt100" # Basic terminal capab. For screen etc.
+if [ ! -e /etc/localtime ]; 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
+fi
+
if [ "`id -u`" -eq 0 ]; then
PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:
fi
diff --git a/packages/base-files/base-files_3.0.14.bb b/packages/base-files/base-files_3.0.14.bb
index ec58e08bef..144bf2e135 100644
--- a/packages/base-files/base-files_3.0.14.bb
+++ b/packages/base-files/base-files_3.0.14.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Miscellaneous files for the base system."
SECTION = "base"
PRIORITY = "required"
-PR = "r38"
+PR = "r39"
LICENSE = "GPL"
SRC_URI = " \