diff options
Diffstat (limited to 'meta/recipes-core/busybox/files/hwclock.sh')
-rw-r--r-- | meta/recipes-core/busybox/files/hwclock.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/recipes-core/busybox/files/hwclock.sh b/meta/recipes-core/busybox/files/hwclock.sh index 2e50425ba8..cc6d2862ba 100644 --- a/meta/recipes-core/busybox/files/hwclock.sh +++ b/meta/recipes-core/busybox/files/hwclock.sh | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | . /etc/default/rcS | 23 | . /etc/default/rcS |
24 | 24 | ||
25 | [ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime" | ||
25 | case "$1" in | 26 | case "$1" in |
26 | start) | 27 | start) |
27 | if [ "$VERBOSE" != no ] | 28 | if [ "$VERBOSE" != no ] |
@@ -34,9 +35,9 @@ case "$1" in | |||
34 | then | 35 | then |
35 | if [ -z "$TZ" ] | 36 | if [ -z "$TZ" ] |
36 | then | 37 | then |
37 | hwclock --hctosys | 38 | hwclock $tz --hctosys |
38 | else | 39 | else |
39 | TZ="$TZ" hwclock --hctosys | 40 | TZ="$TZ" hwclock $tz --hctosys |
40 | fi | 41 | fi |
41 | fi | 42 | fi |
42 | 43 | ||
@@ -59,7 +60,7 @@ case "$1" in | |||
59 | fi | 60 | fi |
60 | if [ "$HWCLOCKACCESS" != no ] | 61 | if [ "$HWCLOCKACCESS" != no ] |
61 | then | 62 | then |
62 | hwclock --systohc | 63 | hwclock $tz --systohc |
63 | fi | 64 | fi |
64 | if [ "$VERBOSE" != no ] | 65 | if [ "$VERBOSE" != no ] |
65 | then | 66 | then |
@@ -70,7 +71,7 @@ case "$1" in | |||
70 | show) | 71 | show) |
71 | if [ "$HWCLOCKACCESS" != no ] | 72 | if [ "$HWCLOCKACCESS" != no ] |
72 | then | 73 | then |
73 | hwclock --show | 74 | hwclock $tz --show |
74 | fi | 75 | fi |
75 | ;; | 76 | ;; |
76 | *) | 77 | *) |