From cf67625c7ad5632e5feff9d5ed55599013dcb2fe Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Fri, 18 Nov 2011 16:06:14 -0600 Subject: [PATCH] cleanup: unmount_all_drive_partitions function Signed-off-by: Robert Nelson --- mk_mmc.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 1222f8e..ecf8193 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -619,13 +619,12 @@ esac cd ${DIR}/ } -function cleanup_sd { - - echo "" - echo "Umounting Partitions" +function unmount_all_drive_partitions { echo "" + echo "Unmounting Partitions" + echo "-----------------------------" -NUM_MOUNTS=$(mount | grep -v none | grep "$MMC" | wc -l) + NUM_MOUNTS=$(mount | grep -v none | grep "$MMC" | wc -l) for (( c=1; c<=$NUM_MOUNTS; c++ )) do @@ -1243,7 +1242,7 @@ fi dl_xload_uboot prepare_initrd prepare_uimage - cleanup_sd + unmount_all_drive_partitions create_partitions reset_scripts