Do not unmount SD card if files are being installed from there. (#490)

pull/495/head
Paul Philippov 2022-09-26 15:04:03 -04:00 committed by GitHub
parent 112de39ea0
commit 7992e5efc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -267,6 +267,7 @@ for i in "$@"; do
--kernel=*) --kernel=*)
update_kernel=1 update_kernel=1
kernel_file="${i#*=}" kernel_file="${i#*=}"
[ "$kernel_file" != ${kernel_file#/mnt/mmc} ] && skip_unmount=1
shift shift
;; ;;
-n | --wipe_overlay) -n | --wipe_overlay)
@ -281,6 +282,7 @@ for i in "$@"; do
--rootfs=*) --rootfs=*)
update_rootfs=1 update_rootfs=1
rootfs_file="${i#*=}" rootfs_file="${i#*=}"
[ "$rootfs_file" != ${rootfs_file#/mnt/mmc} ] && skip_unmount=1
shift shift
;; ;;
--url=*) --url=*)
@ -328,7 +330,7 @@ if [ "1" = "$update_webui" ]; then
fi fi
fi fi
check_sdcard [ "1" != "$skip_unmount" ] && check_sdcard
create_lock create_lock
free_resources free_resources