mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
Merge pull request #258 from pauly/master
writeimage.sh: OSX: unmount before trying to mount_msdos
This commit is contained in:
commit
e304d8e24b
@ -90,6 +90,7 @@ 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
|
||||
else # assuming Linux
|
||||
BOOT_DEV=${SDCARD_DEV}p1 # e.g. /dev/mmcblk0p1
|
||||
|
Loading…
x
Reference in New Issue
Block a user