From d7841bdd8383652153c58b1633460bdcb6bef880 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 25 Jun 2013 19:58:18 -0500 Subject: [PATCH] lsblk: is just so much better then mount for showing partitions Signed-off-by: Robert Nelson --- mk_mmc.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 79d24e3..9b7e406 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1423,8 +1423,13 @@ check_mmc () { echo "fdisk -l:" LC_ALL=C fdisk -l 2>/dev/null | grep "Disk /dev/" --color=never echo "" - echo "mount:" - mount | grep -v none | grep "/dev/" --color=never + if which lsblk > /dev/null ; then + echo "lsblk:" + lsblk | grep -v sr0 + else + echo "mount:" + mount | grep -v none | grep "/dev/" --color=never + fi echo "" exit fi