Skip to content

Commit

Permalink
Merge pull request motioneye-project#375 from mikebanks/master
Browse files Browse the repository at this point in the history
writeimage.sh: osx: use diskutil instead of umount
  • Loading branch information
ccrisan authored Jul 31, 2016
2 parents 6ac039f + 6149de3 commit fcf0b23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions writeimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -158,4 +158,3 @@ umount $BOOT
rmdir $BOOT

msg "you can now remove the sdcard"

0 comments on commit fcf0b23

Please sign in to comment.