SOURCES: timezone.init - removing /etc/localtime moved to "disable...

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


Author: glen                         Date: Sun Feb 25 00:44:51 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- removing /etc/localtime moved to "disable" target
  it is not useful to remove it at shutdown process

---- Files affected:
SOURCES:
   timezone.init (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/timezone.init
diff -u SOURCES/timezone.init:1.5 SOURCES/timezone.init:1.6
--- SOURCES/timezone.init:1.5	Sun Feb 25 01:39:46 2007
+++ SOURCES/timezone.init	Sun Feb 25 01:44:46 2007
@@ -48,11 +48,14 @@
 
 stop() {
 	if [ -f /var/lock/subsys/timezone ]; then
-		run_cmd "Unsetting time zone information" rm -f /etc/localtime
 		rm -f /var/lock/subsys/timezone
 	fi
 }
 
+disable() {
+	run_cmd "Unsetting time zone information" rm -f /etc/localtime
+}
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -66,8 +69,11 @@
 	stop
 	start
 	;;
+  disable)
+	disable
+	;;
   *)
-	msg_usage "$0 {start|stop|restart|reload}"
+	msg_usage "$0 {start|stop|restart|reload|disable}"
 	exit 3
 esac
 
================================================================

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



More information about the pld-cvs-commit mailing list