SOURCES: timezone.init - remove /etc/localtime only if we have cha...

glen glen at pld-linux.org
Sun Feb 25 01:37:51 CET 2007


Author: glen                         Date: Sun Feb 25 00:37:50 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- remove /etc/localtime only if we have chance to succeed

---- Files affected:
SOURCES:
   timezone.init (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SOURCES/timezone.init
diff -u SOURCES/timezone.init:1.3 SOURCES/timezone.init:1.4
--- SOURCES/timezone.init:1.3	Sun Feb 25 01:36:45 2007
+++ SOURCES/timezone.init	Sun Feb 25 01:37:45 2007
@@ -29,8 +29,9 @@
 
 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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/timezone.init?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list