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>
. /etc/default/rcS
-[ "$UTC" = yes ] && UTC=--utc || UTC=--localtime
+[ "$UTC" = yes ] && UTC=-u || UTC=-l
case "$1" in
start)
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
fi
if [ "$HWCLOCKACCESS" != no ]
then
- hwclock -w $UTC;# --systohc
+ hwclock -w $UTC
fi
if [ "$VERBOSE" != no ]
then
show)
if [ "$HWCLOCKACCESS" != no ]
then
- hwclock -r $UTC;# --show
+ hwclock -r $UTC
fi
;;
*)