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