From 24c3a58cace9bf283e45ca4fd99ee0dd5cda309e Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 22 Apr 2010 20:11:59 -0500 Subject: [PATCH] add one more localization --- mk_mmc.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 65fbc61..23b6d42 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -204,14 +204,15 @@ echo "done" } function check_mmc { - FDISK=$(sudo fdisk -l | grep "Disk ${MMC}" | awk '{print $2}') + DISK_NAME="Disk|Platte" + FDISK=$(sudo fdisk -l | grep "[${DISK_NAME}] ${MMC}" | awk '{print $2}') if test "-$FDISK-" = "-$MMC:-" then echo "" echo "I see..." echo "sudo fdisk -l:" - sudo fdisk -l | grep "Disk /dev/" --color=never + sudo fdisk -l | grep "[${DISK_NAME}] /dev/" --color=never echo "" echo "mount:" mount | grep -v none | grep "/dev/" --color=never @@ -224,7 +225,7 @@ function check_mmc { echo "Are you sure? I Don't see [${MMC}], here is what I do see..." echo "" echo "sudo fdisk -l:" - sudo fdisk -l | grep "Disk /dev/" --color=never + sudo fdisk -l | grep "[${DISK_NAME}] /dev/" --color=never echo "" echo "mount:" mount | grep -v none | grep "/dev/" --color=never @@ -233,7 +234,6 @@ function check_mmc { fi } - function check_distro { IN_VALID_DISTRO=1