From 3a7577ba920c66772f4074db7dc9e8797052d7e7 Mon Sep 17 00:00:00 2001 From: Paul Clarke Date: Wed, 20 Apr 2016 17:00:53 +0100 Subject: [PATCH] :apple: :bug: unmount before trying to mount_msdos I've been seeing this issue https://github.com/ccrisan/motioneyeos/issues/256 which stops my wifi settings being written. Unmounting before trying to mount fixes this. --- writeimage.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/writeimage.sh b/writeimage.sh index 485fb70075..c722804be6 100755 --- a/writeimage.sh +++ b/writeimage.sh @@ -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