summaryrefslogtreecommitdiff
path: root/contrib/angstrom
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2010-02-12 22:53:27 +0000
committerGraeme Gregory <dp@xora.org.uk>2010-02-12 22:55:51 +0000
commit6687b01b725288ae365b776c7545324bfc3abb8e (patch)
tree63d8c4fc72d5692cd64deb00c8cf1117ed8e491f /contrib/angstrom
parent5d719eb699a8e6a7e231f2934f94dc7d6a325766 (diff)
omap3-mkcard.sh : make fdisk parsing a little more robust
Diffstat (limited to 'contrib/angstrom')
-rwxr-xr-xcontrib/angstrom/omap3-mkcard.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/angstrom/omap3-mkcard.sh b/contrib/angstrom/omap3-mkcard.sh
index dc4359c38c..d8b5b4373d 100755
--- 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