slitaz-base-files rev 334

/lib/libtaz.sh: TZ should be set
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 01 13:30:09 2017 +0100 (2017-12-01)
parents 9e80adfca421
children 158e813e99d8
files rootfs/lib/libtaz.sh
line diff
     1.1 --- a/rootfs/lib/libtaz.sh	Wed Sep 27 17:13:03 2017 +0100
     1.2 +++ b/rootfs/lib/libtaz.sh	Fri Dec 01 13:30:09 2017 +0100
     1.3 @@ -6,6 +6,8 @@
     1.4  # Copyright (C) 2012-2015 SliTaz GNU/Linux - BSD License
     1.5  #
     1.6  
     1.7 +[ -z "$TZ" ] && [ -s /etc/TZ ] && export TZ="$(cat /etc/TZ)"
     1.8 +
     1.9  . /usr/bin/gettext.sh
    1.10  alias sed="busybox sed"
    1.11