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
No related merge requests found
...@@ -164,7 +164,7 @@ mmc_detect_n_mount () { ...@@ -164,7 +164,7 @@ mmc_detect_n_mount () {
echo "-----------------------------" echo "-----------------------------"
echo "This script has finished..." 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 () { unmount_partitions () {
...@@ -198,8 +198,13 @@ check_mmc () { ...@@ -198,8 +198,13 @@ check_mmc () {
echo "fdisk -l:" echo "fdisk -l:"
LC_ALL=C sudo fdisk -l 2>/dev/null | grep "Disk /dev/" --color=never LC_ALL=C sudo 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" ] && unmount_partitions [ "${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