From a9d82c32d6ea21c04b36e0ed1def9de87a6e0657 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 25 Feb 2007 00:44:46 +0000 Subject: [PATCH] - removing /etc/localtime moved to "disable" target it is not useful to remove it at shutdown process Changed files: timezone.init -> 1.6 --- timezone.init | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.44.0