]> git.pld-linux.org Git - packages/tzdata.git/commitdiff
- speed optimize
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 25 Feb 2007 00:39:46 +0000 (00:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    timezone.init -> 1.5

timezone.init

index 72d2b67e1d0e3116beb2dc1ff3d35ba3909dd63f..eaccea0d96b8447e62bb6e3a31d8eccec334dc2e 100644 (file)
@@ -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 @@ fi
 
 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
This page took 0.130404 seconds and 4 git commands to generate.