summaryrefslogtreecommitdiff
path: root/packages/busybox/files/hwclock.sh
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-12-19 09:20:25 +0100
committerKoen Kooi <koen@openembedded.org>2008-12-19 09:20:25 +0100
commit89becd13888f321e4f7e1d88165db41f86caaaf8 (patch)
tree47c3b02c7f8de78003f446c9a5bc5b73d3f4a40c /packages/busybox/files/hwclock.sh
parent26102276cb26e256186d841390988460c52bde8a (diff)
parentef5ad935d6efd350b24e141e34bf26744ca31409 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/busybox/files/hwclock.sh')
-rw-r--r--packages/busybox/files/hwclock.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/busybox/files/hwclock.sh b/packages/busybox/files/hwclock.sh
index 5acfb9fb24..aab5c054af 100644
--- a/packages/busybox/files/hwclock.sh
+++ b/packages/busybox/files/hwclock.sh
@@ -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
;;
*)