Comments
Patch
@@ -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
;;
*)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> --- recipes/busybox/files/hwclock.sh | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-)