Translated unmount

“unmount” isn’t recognized in Mac OS X. Used Disk Utility command to
unmount the disk. Also used mount -f to force the mount to get rid of
the block resource warning. Should fix issue #277
This commit is contained in:
Michael Banks 2016-07-03 02:36:33 -04:00
parent d95d2d7070
commit 661fed8dc2

View File

@ -99,8 +99,8 @@ mkdir -p $BOOT
if [ `uname` == "Darwin" ]; then if [ `uname` == "Darwin" ]; then
BOOT_DEV=${SDCARD_DEV}s1 # e.g. /dev/disk4s1 BOOT_DEV=${SDCARD_DEV}s1 # e.g. /dev/disk4s1
umount ${SDCARD_DEV}* 2>/dev/null || true diskutil unmountDisk ${SDCARD_DEV}
mount_msdos $BOOT_DEV $BOOT mount -ft msdos $BOOT_DEV $BOOT
else # assuming Linux else # assuming Linux
BOOT_DEV=${SDCARD_DEV}p1 # e.g. /dev/mmcblk0p1 BOOT_DEV=${SDCARD_DEV}p1 # e.g. /dev/mmcblk0p1
if ! [ -e ${SDCARD_DEV}p1 ]; then if ! [ -e ${SDCARD_DEV}p1 ]; then
@ -158,4 +158,3 @@ umount $BOOT
rmdir $BOOT rmdir $BOOT
msg "you can now remove the sdcard" msg "you can now remove the sdcard"