Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] *** Improve hwclock.sh script ***
@ 2012-11-01  6:47 Qi.Chen
  2012-11-01  6:47 ` [PATCH 1/1] hwclock.sh: improve hwclock.sh script to use UTC variable Qi.Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Qi.Chen @ 2012-11-01  6:47 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

From: Chen Qi <Qi.Chen@windriver.com>

*** BLURB HERE ***
The following changes since commit e9e3285e1397cfd2d34f4eb7b5aa59311eea861d:

  openssl: Use ${CFLAGS} not ${FULL_OPTIMIZATION} (2012-10-30 11:06:38 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/hwclock
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/hwclock

Chen Qi (1):
  hwclock.sh: improve hwclock.sh script to use UTC variable

 meta/recipes-core/busybox/busybox_1.20.2.bb     |    2 +-
 meta/recipes-core/busybox/files/hwclock.sh      |    9 +++++----
 meta/recipes-core/sysvinit/sysvinit/rcS-default |    4 ++--
 meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb  |    2 +-
 4 files changed, 9 insertions(+), 8 deletions(-)

-- 
1.7.9.5




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] hwclock.sh: improve hwclock.sh script to use UTC variable
  2012-11-01  6:47 [PATCH 0/1] *** Improve hwclock.sh script *** Qi.Chen
@ 2012-11-01  6:47 ` Qi.Chen
  0 siblings, 0 replies; 2+ messages in thread
From: Qi.Chen @ 2012-11-01  6:47 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

From: Chen Qi <Qi.Chen@windriver.com>

Make UTC variable in /etc/default/rcS has effect on hwclock.sh.
This variable declares whether the Hardware Clock is kept in UTC
or local time. Default its value to "yes" and change the comment.

[YOCTO #3341]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-core/busybox/busybox_1.20.2.bb     |    2 +-
 meta/recipes-core/busybox/files/hwclock.sh      |    9 +++++----
 meta/recipes-core/sysvinit/sysvinit/rcS-default |    4 ++--
 meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb  |    2 +-
 4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-core/busybox/busybox_1.20.2.bb b/meta/recipes-core/busybox/busybox_1.20.2.bb
index 4c0946a..3e628d2 100644
--- a/meta/recipes-core/busybox/busybox_1.20.2.bb
+++ b/meta/recipes-core/busybox/busybox_1.20.2.bb
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://B921600.patch \
diff --git a/meta/recipes-core/busybox/files/hwclock.sh b/meta/recipes-core/busybox/files/hwclock.sh
index 2e50425..cc6d286 100644
--- a/meta/recipes-core/busybox/files/hwclock.sh
+++ b/meta/recipes-core/busybox/files/hwclock.sh
@@ -22,6 +22,7 @@
 
 . /etc/default/rcS
 
+[ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime"
 case "$1" in
         start)
                 if [ "$VERBOSE" != no ]
@@ -34,9 +35,9 @@ case "$1" in
 		then
 			if [ -z "$TZ" ]
 			then
-	                   hwclock --hctosys
+	                   hwclock $tz --hctosys
 			else
-			   TZ="$TZ" hwclock --hctosys
+			   TZ="$TZ" hwclock $tz --hctosys
 			fi
 		fi
 
@@ -59,7 +60,7 @@ case "$1" in
 		fi
 		if [ "$HWCLOCKACCESS" != no ]
 		then
-			hwclock --systohc
+			hwclock $tz --systohc
 		fi
 		if [ "$VERBOSE" != no ]
 		then
@@ -70,7 +71,7 @@ case "$1" in
 	show)
 		if [ "$HWCLOCKACCESS" != no ]
 		then
-			hwclock --show
+			hwclock $tz --show
 		fi
 		;;
         *)
diff --git a/meta/recipes-core/sysvinit/sysvinit/rcS-default b/meta/recipes-core/sysvinit/sysvinit/rcS-default
index fc6d415..3c9dea9 100644
--- a/meta/recipes-core/sysvinit/sysvinit/rcS-default
+++ b/meta/recipes-core/sysvinit/sysvinit/rcS-default
@@ -9,8 +9,8 @@ SULOGIN=no
 # Set to no if you want to be able to login over telnet/rlogin
 # before system startup is complete (as soon as inetd is started)
 DELAYLOGIN=no
-# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.
-# UTC=yes
+# Assume that the BIOS clock is set to UTC time (recommended)
+UTC=yes
 # Set VERBOSE to "no" if you would like a more quiet bootup.
 VERBOSE=no
 # Set EDITMOTD to "no" if you don't want /etc/motd to be edited automatically
diff --git a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
index 63333b0..1647a0f 100644
--- a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
@@ -5,7 +5,7 @@ SECTION = "base"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                     file://COPYRIGHT;endline=15;md5=349c872e0066155e1818b786938876a4"
-PR = "r7"
+PR = "r8"
 
 RDEPENDS_${PN} = "${PN}-inittab"
 
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-01  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-01  6:47 [PATCH 0/1] *** Improve hwclock.sh script *** Qi.Chen
2012-11-01  6:47 ` [PATCH 1/1] hwclock.sh: improve hwclock.sh script to use UTC variable Qi.Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox