From: Elan Ruusamäe Date: Sun, 25 Feb 2007 00:37:45 +0000 (+0000) Subject: - remove /etc/localtime only if we have chance to succeed X-Git-Tag: AC-STABLE~5 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=fe8f4f9708a50543a02ad0f631d03c7b458de699;hp=0abdb07fd1c9b2d75b9c5a5641c757d40728b097;p=packages%2Ftzdata.git - remove /etc/localtime only if we have chance to succeed Changed files: timezone.init -> 1.4 --- diff --git a/timezone.init b/timezone.init index fff84bc..72d2b67 100644 --- a/timezone.init +++ b/timezone.init @@ -29,8 +29,9 @@ ZONE_FILE="$ZONE_FILE/$TIME_ZONE" start() { if [ ! -f /var/lock/subsys/timezone ]; then - rm -f /etc/localtime if [ -f "$ZONE_FILE" ]; then + rm -f /etc/localtime + if [ -n "$ZONE_INFO_AREA" ]; then MESSAGE="`nls 'Setting time zone information (%s, %s)' "$ZONE_INFO_AREA" "$TIME_ZONE"`" else