use lsblk over mount when available

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent 7f9af4fbfd
commit 57f1de5cbf

@ -1376,8 +1376,13 @@ function check_mmc {
echo "fdisk -l:" echo "fdisk -l:"
LC_ALL=C fdisk -l 2>/dev/null | grep "Disk /dev/" --color=never LC_ALL=C fdisk -l 2>/dev/null | grep "Disk /dev/" --color=never
echo "" echo ""
echo "mount:" if which lsblk > /dev/null ; then
mount | grep -v none | grep "/dev/" --color=never echo "lsblk:"
lsblk | grep -v sr0
else
echo "mount:"
mount | grep -v none | grep "/dev/" --color=never
fi
echo "" echo ""
read -p "Are you 100% sure, on selecting [${MMC}] (y/n)? " read -p "Are you 100% sure, on selecting [${MMC}] (y/n)? "
[ "${REPLY}" == "y" ] || exit [ "${REPLY}" == "y" ] || exit

Loading…
Cancel
Save