Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 1b98ac0c authored by Robert Nelson's avatar Robert Nelson
Browse files

scripts: sync with master


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 0afa1504
Branches
Tags
No related merge requests found
......@@ -164,7 +164,7 @@ mmc_detect_n_mount () {
echo "-----------------------------"
echo "This script has finished..."
echo "Always test your device for verification..."
echo "For verification, always test this media with your end device..."
}
unmount_partitions () {
......@@ -198,8 +198,13 @@ check_mmc () {
echo "fdisk -l:"
LC_ALL=C sudo 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 ""
read -p "Are you 100% sure, on selecting [${MMC}] (y/n)? "
[ "${REPLY}" == "y" ] && unmount_partitions
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment