]> git.openpandora.org Git - openembedded.git/commitdiff
busybox: update hwclock.sh to honor the UTC setting in /etc/default/rcS
authorJohn Lee <john_lee@openmoko.com>
Tue, 2 Sep 2008 06:42:18 +0000 (14:42 +0800)
committerJohn Lee <john_lee@openmoko.org>
Thu, 18 Dec 2008 15:32:46 +0000 (23:32 +0800)
...and increase PR of every consumer.

packages/busybox/busybox_1.11.3.bb
packages/busybox/busybox_1.2.1.bb
packages/busybox/busybox_1.2.2.bb
packages/busybox/busybox_1.3.1.bb
packages/busybox/busybox_1.7.2.bb
packages/busybox/busybox_1.9.2.bb
packages/busybox/files/hwclock.sh

index 09eddaeb6bf1281234d7b1286558ebb6d875350b..3956c4878b71af3bf3a98e0a3ba0e97f89124c81 100644 (file)
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "\
   http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
index 4ef3cfeb66f59d9f3ca5244f1ca3019f6364ad9f..346506c10d7efb72f45267c10d62030ca93b67fa 100644 (file)
@@ -1,6 +1,6 @@
 require busybox.inc
 
-PR = "r17"
+PR = "r18"
 
 SRC_URI += "file://wget-long-options.patch;patch=1 \
           file://df_rootfs.patch;patch=1 \
index 14379a5da67379fedb8746b9ef2204c891a8a0b5..250802116a7a8517a65fb0a990aa56a1ab2b76be 100644 (file)
@@ -1,6 +1,6 @@
 require busybox.inc
 
-PR = "r3"
+PR = "r4"
 
 DEFAULT_PREFERENCE = "-1"
 
index 31a2f1abe7641e4f3659007f5ce31684010f70e8..4742c87d1a9f89a3de3f3bb225f515eb4569b356 100644 (file)
@@ -1,6 +1,6 @@
 require busybox.inc
 
-PR = "r3"
+PR = "r4"
 
 DEFAULT_PREFERENCE = "-1"
 
index 53304df387588d126a737ed082edcbf4c8e5bdeb..4d93394ff4ade2d69b3495f07a654135a5c7d213 100644 (file)
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r9"
+PR = "r10"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
            file://busybox-cron \
index e5c0f2473cc55f24d2c3895f37b3ad1495ad736c..3db360423b6d86641efb3838eeb47d878621d250 100644 (file)
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
            file://udhcpscript.patch;patch=1 \
index 5acfb9fb241b2296771905bfea4bcd439e7919d2..aab5c054af00b7c1edffb1d6a620e9fa07fb2e3c 100644 (file)
@@ -14,6 +14,8 @@
 
 . /etc/default/rcS
 
+[ "$UTC" = yes ] && UTC=--utc || UTC=--localtime
+
 case "$1" in
         start)
                 if [ "$VERBOSE" != no ]
@@ -26,9 +28,9 @@ case "$1" in
                then
                        if [ -z "$TZ" ]
                        then
-                          hwclock --hctosys
+                          hwclock --hctosys $UTC
                        else
-                          TZ="$TZ" hwclock --hctosys
+                          TZ="$TZ" hwclock --hctosys $UTC
                        fi
                fi
 
@@ -51,7 +53,7 @@ case "$1" in
                fi
                if [ "$HWCLOCKACCESS" != no ]
                then
-                       hwclock --systohc
+                       hwclock --systohc $UTC
                fi
                if [ "$VERBOSE" != no ]
                then
@@ -62,7 +64,7 @@ case "$1" in
        show)
                if [ "$HWCLOCKACCESS" != no ]
                then
-                       hwclock --show
+                       hwclock --show $UTC
                fi
                ;;
         *)