From b1a2a3ef87ab68e5eba8930f40b614f8bfeb1822 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 7 Mar 2011 11:54:10 -0600 Subject: [PATCH] use fdisk -l over sfdisk -l, it looks more normal, sfdisk really had no advantage Signed-off-by: Robert Nelson --- mk_mmc.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 348d6b1..99e583d 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -811,14 +811,14 @@ function reset_scripts { } function check_mmc { - FDISK=$(sudo LC_ALL=C sfdisk -l 2>/dev/null | grep "[Disk] ${MMC}" | awk '{print $2}') + FDISK=$(sudo LC_ALL=C fdisk -l 2>/dev/null | grep "[Disk] ${MMC}" | awk '{print $2}') if test "-$FDISK-" = "-$MMC:-" then echo "" echo "I see..." - echo "sudo sfdisk -l:" - sudo LC_ALL=C sfdisk -l 2>/dev/null | grep "[Disk] /dev/" --color=never + echo "sudo fdisk -l:" + sudo LC_ALL=C fdisk -l 2>/dev/null | grep "[Disk] /dev/" --color=never echo "" echo "mount:" mount | grep -v none | grep "/dev/" --color=never @@ -830,8 +830,8 @@ function check_mmc { echo "" echo "Are you sure? I Don't see [${MMC}], here is what I do see..." echo "" - echo "sudo sfdisk -l:" - sudo LC_ALL=C sfdisk -l 2>/dev/null | grep "[Disk] /dev/" --color=never + echo "sudo fdisk -l:" + sudo LC_ALL=C fdisk -l 2>/dev/null | grep "[Disk] /dev/" --color=never echo "" echo "mount:" mount | grep -v none | grep "/dev/" --color=never