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 09eddae..3956c48 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 4ef3cfe..346506c 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 14379a5..2508021 100644 (file)
@@ -1,6 +1,6 @@
 require busybox.inc
 
-PR = "r3"
+PR = "r4"
 
 DEFAULT_PREFERENCE = "-1"
 
index 31a2f1a..4742c87 100644 (file)
@@ -1,6 +1,6 @@
 require busybox.inc
 
-PR = "r3"
+PR = "r4"
 
 DEFAULT_PREFERENCE = "-1"
 
index 53304df..4d93394 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 e5c0f24..3db3604 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 5acfb9f..aab5c05 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
                ;;
         *)