mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
🍎 🐛 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.
This commit is contained in:
parent
62e8dfb542
commit
3a7577ba92
@ -90,6 +90,7 @@ 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
|
||||||
mount_msdos $BOOT_DEV $BOOT
|
mount_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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user