SOURCES: timezone.init - speed optimize
glen
glen at pld-linux.org
Sun Feb 25 01:39:52 CET 2007
Author: glen Date: Sun Feb 25 00:39:52 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- speed optimize
---- Files affected:
SOURCES:
timezone.init (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SOURCES/timezone.init
diff -u SOURCES/timezone.init:1.4 SOURCES/timezone.init:1.5
--- SOURCES/timezone.init:1.4 Sun Feb 25 01:37:45 2007
+++ SOURCES/timezone.init Sun Feb 25 01:39:46 2007
@@ -7,10 +7,11 @@
#
# $Id$
+[ -f /etc/sysconfig/timezone ] || exit 0
+
# Source function library.
. /etc/rc.d/init.d/functions
-[ ! -f /etc/sysconfig/timezone ] && exit 0
. /etc/sysconfig/timezone
ZONE_FILE="$ZONE_INFO_DIR"
@@ -25,7 +26,7 @@
ZONE_FILE="$ZONE_FILE/$TIME_ZONE"
-[ -L /etc/localtime -a "`resolvesymlink /etc/localtime`" = "$ZONE_FILE" ] && exit 0
+[ -L /etc/localtime ] && [ "$(resolvesymlink /etc/localtime)" = "$ZONE_FILE" ] && exit 0
start() {
if [ ! -f /var/lock/subsys/timezone ]; then
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/timezone.init?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list