From b5be746cafed9e5f590534bcc66e031377a94db0 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 26 Aug 2016 14:34:39 +0200 Subject: [PATCH] Wait before running offline_upgrade so files are unlocked --- packages/fwsupdates.xml | 3 +-- softwares/offline_upgrade.bat | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/fwsupdates.xml b/packages/fwsupdates.xml index 0f4dddd..f5cbb43 100755 --- a/packages/fwsupdates.xml +++ b/packages/fwsupdates.xml @@ -6,7 +6,7 @@ reboot="false" priority="95"> - + @@ -42,4 +42,3 @@ - diff --git a/softwares/offline_upgrade.bat b/softwares/offline_upgrade.bat index ff2b401..064ec15 100644 --- a/softwares/offline_upgrade.bat +++ b/softwares/offline_upgrade.bat @@ -2,6 +2,9 @@ REM perform upgrade of WPKG client +REM Wait for files to be unlocked +timeout /t 3 + IF EXIST "%SystemDrive%\FWSUpdates\assets.upgrade" ( RMDIR /S /Q "%SystemDrive%\FWSUpdates\assets" RENAME "%SystemDrive%\FWSUpdates\assets.upgrade" assets