diff options
author | John Lee <john_lee@openmoko.com> | 2008-09-02 14:42:18 +0800 |
---|---|---|
committer | John Lee <john_lee@openmoko.org> | 2008-12-18 23:32:46 +0800 |
commit | 5dfd955669ef9fbd49ec68587c5c39f332b40b26 (patch) | |
tree | 552cfe9ec3a856f0a65f5e51224478420720c576 /packages/busybox/files/hwclock.sh | |
parent | fb198a1b364f29acb52f1f2b5f3c43a5ba3e78a2 (diff) |
busybox: update hwclock.sh to honor the UTC setting in /etc/default/rcS
...and increase PR of every consumer.
Diffstat (limited to 'packages/busybox/files/hwclock.sh')
-rw-r--r-- | packages/busybox/files/hwclock.sh | 10 |
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 ;; *) |