From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay01.ispgateway.de ([80.67.18.43]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SHaaI-000396-RW for ptxdist@pengutronix.de; Tue, 10 Apr 2012 14:54:11 +0200 Date: Tue, 10 Apr 2012 14:54:08 +0200 From: Bernhard Walle Message-ID: <20120410125408.GB19975@regiomontanus.bwalle.de> References: <1332763274-17969-1-git-send-email-bernhard@bwalle.de> <1332763274-17969-2-git-send-email-bernhard@bwalle.de> <4F842135.1050108@corscience.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4F842135.1050108@corscience.de> Subject: Re: [ptxdist] [PATCH 2/2] Allow creation of bootable SD card for OMAP CPUs Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Andreas =?iso-8859-1?Q?Bie=DFmann?= Cc: ptxdist@pengutronix.de * Andreas Bie=DFmann [2012-04-10 14:01]: > > + > > + dd if=3D/dev/zero of=3D"${OUTPUT}" bs=3D512 count=3D0 seek=3D"${img_s= ize_blocks}" >/dev/null 2>&1 > > + > > + local trg_size=3D"$(file_length "${OUTPUT}")" > > + local cylinders=3D$(echo ${trg_size}/255/63/512 | bc) > = > avoid bc here, drop trg_size: > = > local cylinders=3D$(( $(file_length "${OUTPUT}")/255/63/512 )) Using builtin $(()) instead of bc is good but I like to keep trg_size. Regards, Bernhard -- = ptxdist mailing list ptxdist@pengutronix.de