From patchwork Mon Feb 8 21:14:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [oe,02/12] some more !getopt_long fixes Date: Mon, 08 Feb 2010 11:14:23 -0000 From: Bernhard Reutner-Fischer X-Patchwork-Id: 1558 Message-Id: <1265663673-16312-3-git-send-email-rep.dot.nop@gmail.com> To: openembedded-devel@lists.openembedded.org Signed-off-by: Bernhard Reutner-Fischer --- 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 ;; *)