zaurus-updater: fix flashing from case sensitive filesystems
authorKoen Kooi <koen@openembedded.org>
Fri, 23 Nov 2007 19:41:32 +0000 (19:41 +0000)
committerKoen Kooi <koen@openembedded.org>
Fri, 23 Nov 2007 19:41:32 +0000 (19:41 +0000)
packages/zaurus-updater/zaurus-updater.bb
packages/zaurus-updater/zaurus-updater/updater.sh

index 8aa86b6..ee4c85e 100644 (file)
@@ -1,7 +1,7 @@
 DESCRIPTION = "Encrypted shellscript for the Zaurus ROM update"
 DEPENDS = "encdec-updater-native"
 LICENSE = "zaurus-updater"
-PR = "r12"
+PR = "r13"
 
 PACKAGES = ""
 PACKAGE_ARCH = "${MACHINE_ARCH}"
index c665977..8f686de 100644 (file)
@@ -22,6 +22,7 @@
 #
 # 2007.11.23 Koen Kooi
 # - consistent error messages
+# - fix flashing from case sensitive filesystem (e.g. ext2)
 
 DATAPATH=$1
 TMPPATH=/tmp/update
@@ -293,9 +294,9 @@ do
     DATASIZE=`echo $DATASIZE | cut -d' ' -f1`
 
     # make TARGETFILE lowercase
-    TARGETFILE=`echo $TARGETFILE|tr A-Z a-z`
+    TARGETFILE_LC=`echo $TARGETFILE|tr A-Z a-z`
 
-    case "$TARGETFILE" in
+    case "$TARGETFILE_LC" in
 
     zimage|zimage.bin)
         if [ $FLASHED_KERNEL != 0 ]