base-files: profile: don't set TZ if /etc/TZ is present
authorRoman Khimov <khimov@altell.ru>
Fri, 2 Jul 2010 04:57:34 +0000 (04:57 +0000)
committerRoman I Khimov <khimov@altell.ru>
Thu, 29 Jul 2010 19:54:22 +0000 (23:54 +0400)
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>
recipes/base-files/base-files/jornada6xx/profile
recipes/base-files/base-files/omap3-pandora/profile
recipes/base-files/base-files/oplinux-uclibc/profile
recipes/base-files/base-files/oplinux/profile
recipes/base-files/base-files/profile
recipes/base-files/base-files/shr/profile
recipes/base-files/base-files_3.0.14.bb

index bff0f42..bd9e3e6 100755 (executable)
@@ -9,7 +9,7 @@ if [ "`id -u`" -eq 0 ]; then
    PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
 fi
 
-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
index 5797535..99b6fce 100644 (file)
@@ -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
index f6ae329..5ad2967 100644 (file)
@@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
 EDITOR="/usr/bin/nano" # needed for packages like cron
 TERM="linux"           # 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
index f6ae329..5ad2967 100644 (file)
@@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
 EDITOR="/usr/bin/nano" # needed for packages like cron
 TERM="linux"           # 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
index b5ce69d..8f7f6b5 100644 (file)
@@ -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
index ff0418f..6874e6c 100644 (file)
@@ -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
index 02bd39b..abb8c97 100644 (file)
@@ -1,7 +1,7 @@
 DESCRIPTION = "Miscellaneous files for the base system."
 SECTION = "base"
 PRIORITY = "required"
-PR = "r95"
+PR = "r96"
 LICENSE = "GPL"
 
 SRC_URI = " \