fi
EXTRACT_FILE="${MNT_PNT}${TARGET_FILE}"
- if [ -e ${EXTRACT_FILE} ]; then
+ if [ -d ${EXTRACT_FILE} ]; then
+ sudo cp -Rd ${EXTRACT_FILE}/* ${DELTA_DIR}
+ elif [ -e ${EXTRACT_FILE} ]; then
sudo cp ${EXTRACT_FILE} ${DELTA_DIR}
else
echo "There is no ${TARGET_FILE} in ${IMAGE}"
#--- extract files which would be appended to delta.tar ---
echo "Extract binaries for update from images"
- fn_extract_from_image rootfs.img /usr/bin/upgrade-trigger.sh
- fn_extract_from_image rootfs.img /usr/bin/upgrade-legacy.sh
- fn_extract_from_image rootfs.img /usr/bin/upgrade-full.sh
- fn_extract_from_image rootfs.img /usr/bin/upgrade-fota.sh
- fn_extract_from_image rootfs.img /usr/bin/upgrade-partial.sh
- fn_extract_from_image rootfs.img /usr/bin/upgrade-prepare-partitions.sh
+ fn_extract_from_image rootfs.img /usr/libexec/upgrade-support
fn_extract_from_image ramdisk-recovery.img /usr/bin/delta.ua
#--- archive result directory ---