[oe] [PATCH 02/12] some more !getopt_long fixes
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Mon Feb 8 21:14:23 UTC 2010
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
recipes/busybox/files/hwclock.sh | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/recipes/busybox/files/hwclock.sh b/recipes/busybox/files/hwclock.sh
index 6c0af34..57c9fc7 100644
--- a/recipes/busybox/files/hwclock.sh
+++ b/recipes/busybox/files/hwclock.sh
@@ -14,27 +14,27 @@
. /etc/default/rcS
-[ "$UTC" = yes ] && UTC=--utc || UTC=--localtime
+[ "$UTC" = "yes" ] && UTC=-u || UTC=-l
case "$1" in
start)
- if [ "$VERBOSE" != no ]
+ if [ "$VERBOSE" != "no" ]
then
echo "System time was `date`."
echo "Setting the System Clock using the Hardware Clock as reference..."
fi
- if [ "$HWCLOCKACCESS" != no ]
+ if [ "$HWCLOCKACCESS" != "no" ]
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
- if [ "$VERBOSE" != no ]
+ if [ "$VERBOSE" != "no" ]
then
echo "System Clock set. System local time is now `date`."
fi
@@ -47,24 +47,24 @@ case "$1" in
# WARNING: If you disable this, any changes to the system
# clock will not be carried across reboots.
#
- if [ "$VERBOSE" != no ]
+ if [ "$VERBOSE" != "no" ]
then
echo "Saving the System Clock time to the Hardware Clock..."
fi
- if [ "$HWCLOCKACCESS" != no ]
+ if [ "$HWCLOCKACCESS" != "no" ]
then
- hwclock -w $UTC;# --systohc
+ hwclock -w $UTC
fi
- if [ "$VERBOSE" != no ]
+ if [ "$VERBOSE" != "no" ]
then
echo "Hardware Clock updated to `date`."
fi
exit 0
;;
show)
- if [ "$HWCLOCKACCESS" != no ]
+ if [ "$HWCLOCKACCESS" != "no" ]
then
- hwclock -r $UTC;# --show
+ hwclock -r $UTC
fi
;;
*)
--
1.6.5
More information about the Openembedded-devel
mailing list