git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d719eb
)
omap3-mkcard.sh : make fdisk parsing a little more robust
author
Graeme Gregory
<dp@xora.org.uk>
Fri, 12 Feb 2010 22:53:27 +0000
(22:53 +0000)
committer
Graeme Gregory
<dp@xora.org.uk>
Fri, 12 Feb 2010 22:55:51 +0000
(22:55 +0000)
contrib/angstrom/omap3-mkcard.sh
patch
|
blob
|
history
diff --git
a/contrib/angstrom/omap3-mkcard.sh
b/contrib/angstrom/omap3-mkcard.sh
index
dc4359c
..
d8b5b43
100755
(executable)
--- a/
contrib/angstrom/omap3-mkcard.sh
+++ b/
contrib/angstrom/omap3-mkcard.sh
@@
-6,7
+6,7
@@
# Parts of the procudure base on the work of Denys Dmytriyenko
# http://wiki.omap.com/index.php/MMC_Boot_Format
-LC_ALL=C
+
export
LC_ALL=C
if [ $# -ne 1 ]; then
echo "Usage: $0 <drive>"
@@
-17,7
+17,7
@@
DRIVE=$1
dd if=/dev/zero of=$DRIVE bs=1024 count=1024
-SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`
+SIZE=`fdisk -l $DRIVE | grep Disk |
grep bytes |
awk '{print $5}'`
echo DISK SIZE - $SIZE bytes