Make /etc/profile use TZ variable if /etc/localtime not present. link in comments...
authorOyvind Repvik <nail@nslu2-linux.org>
Sat, 30 Jul 2005 17:46:18 +0000 (17:46 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 30 Jul 2005 17:46:18 +0000 (17:46 +0000)
packages/base-files/base-files/profile
packages/base-files/base-files_3.0.14.bb

index f24fec9..a4c1694 100644 (file)
@@ -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
index ec58e08..144bf2e 100644 (file)
@@ -1,7 +1,7 @@
 DESCRIPTION = "Miscellaneous files for the base system."
 SECTION = "base"
 PRIORITY = "required"
-PR = "r38"
+PR = "r39"
 LICENSE = "GPL"
 
 SRC_URI = " \