use fdisk -l over sfdisk -l, it looks more normal, sfdisk really had no advantage

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent 9e0aba0742
commit b1a2a3ef87

@ -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

Loading…
Cancel
Save