From: Elan Ruusamäe Date: Sun, 25 Feb 2007 00:44:46 +0000 (+0000) Subject: - removing /etc/localtime moved to "disable" target X-Git-Tag: AC-STABLE~3 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=a9d82c32d6ea21c04b36e0ed1def9de87a6e0657;p=packages%2Ftzdata.git - removing /etc/localtime moved to "disable" target it is not useful to remove it at shutdown process Changed files: timezone.init -> 1.6 --- diff --git a/timezone.init b/timezone.init index eaccea0..ef1c2bd 100644 --- a/timezone.init +++ b/timezone.init @@ -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