summaryrefslogtreecommitdiff
path: root/recipes-core/initscripts/initscripts-1.0/umountfs
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/initscripts/initscripts-1.0/umountfs')
-rw-r--r--recipes-core/initscripts/initscripts-1.0/umountfs6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-core/initscripts/initscripts-1.0/umountfs b/recipes-core/initscripts/initscripts-1.0/umountfs
index f042782..594db53 100644
--- a/recipes-core/initscripts/initscripts-1.0/umountfs
+++ b/recipes-core/initscripts/initscripts-1.0/umountfs
@@ -202,12 +202,12 @@ flash_upgrade() {
echo "MD5 check failed for ${file}"
return
fi
+ if [[ ${file} == ${install_file} ]] ; then
+ ((upgrade_script=1))
+ fi
fi
# Extract files early if we are going to
# execute the upgrade script.
- if [[ ${file} == ${install_file} ]] ; then
- ((upgrade_script=1))
- fi
done
fi