summaryrefslogtreecommitdiffstats
path: root/recipes/busybox
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-10 21:12:53 +0100
committerPhil Blundell <philb@gnu.org>2010-02-14 21:34:14 +0000
commit50252aaaf762894484f11a95cf0d0f9822f38a6f (patch)
treeef352e64a9d71ef18db98e7950fa385f659525f9 /recipes/busybox
parent11c5cc73f2615bdc1c769dac85a4dc0628d58db3 (diff)
downloadopenembedded-50252aaaf762894484f11a95cf0d0f9822f38a6f.tar.gz
busybox: some more !getopt_long fixes in hwclock.sh
busybox' hwclock can be built without support for getopt_long. Flags of the big hwclock are compatible with the busybox version. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'recipes/busybox')
-rw-r--r--recipes/busybox/files/hwclock.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/busybox/files/hwclock.sh b/recipes/busybox/files/hwclock.sh
index 6c0af3422c..f9c9f9f2c2 100644
--- a/recipes/busybox/files/hwclock.sh
+++ b/recipes/busybox/files/hwclock.sh
@@ -14,7 +14,7 @@
. /etc/default/rcS
-[ "$UTC" = yes ] && UTC=--utc || UTC=--localtime
+[ "$UTC" = yes ] && UTC=-u || UTC=-l
case "$1" in
start)
@@ -28,9 +28,9 @@ case "$1" in
then
if [ -z "$TZ" ]
then
- hwclock -s $UTC;# --hctosys
+ hwclock -s $UTC
else
- TZ="$TZ" hwclock -s $UTC;# --hctosys
+ TZ="$TZ" hwclock -s $UTC
fi
fi
@@ -53,7 +53,7 @@ case "$1" in
fi
if [ "$HWCLOCKACCESS" != no ]
then
- hwclock -w $UTC;# --systohc
+ hwclock -w $UTC
fi
if [ "$VERBOSE" != no ]
then
@@ -64,7 +64,7 @@ case "$1" in
show)
if [ "$HWCLOCKACCESS" != no ]
then
- hwclock -r $UTC;# --show
+ hwclock -r $UTC
fi
;;
*)