]> git.pld-linux.org Git - packages/tzdata.git/commitdiff
- removing /etc/localtime moved to "disable" target
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 25 Feb 2007 00:44:46 +0000 (00:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  it is not useful to remove it at shutdown process

Changed files:
    timezone.init -> 1.6

timezone.init

index eaccea0d96b8447e62bb6e3a31d8eccec334dc2e..ef1c2bd11c14057f2970c2cbdf125ad9cff98918 100644 (file)
@@ -48,11 +48,14 @@ start() {
 
 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 @@ case "$1" in
        stop
        start
        ;;
+  disable)
+       disable
+       ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload}"
+       msg_usage "$0 {start|stop|restart|reload|disable}"
        exit 3
 esac
 
This page took 0.049123 seconds and 4 git commands to generate.