card script: cleanup check_mmc

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 13 years ago
parent a08b7046c3
commit 5a134c64c6

@ -1423,11 +1423,9 @@ function reset_scripts {
}
function check_mmc {
FDISK=$(LC_ALL=C fdisk -l 2>/dev/null | grep "Disk ${MMC}" | awk '{print $2}')
if test "-$FDISK-" = "-$MMC:-"
then
if [ "x${FDISK}" = "x${MMC}:" ] ; then
echo ""
echo "I see..."
echo "fdisk -l:"
@ -1437,7 +1435,7 @@ function check_mmc {
mount | grep -v none | grep "/dev/" --color=never
echo ""
read -p "Are you 100% sure, on selecting [${MMC}] (y/n)? "
[ "$REPLY" == "y" ] || exit
[ "${REPLY}" == "y" ] || exit
echo ""
else
echo ""

Loading…
Cancel
Save