From ce13e5e30648acbb5e84587fc550122b6af431ff Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 24 Apr 2013 15:22:34 -0500 Subject: [PATCH] dash compatiable Signed-off-by: Robert Nelson --- mk_mmc.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 1fa9d4c..552fdc5 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1835,9 +1835,8 @@ while [ ! -z "$1" ] ; do --mmc) checkparm $2 MMC="$2" - if [[ "${MMC}" =~ "mmcblk" ]] ; then - PARTITION_PREFIX="p" - fi + unset PARTITION_PREFIX + echo ${MMC} | grep mmcblk >/dev/null && PARTITION_PREFIX="p" check_root check_mmc ;;