[aadk-commits] dbailey: uClinux/trunk r387 - /uClinux/trunk/uClinux-dist/vendors/Digium/S800...

aadk-commits at lists.digium.com aadk-commits at lists.digium.com
Wed Apr 25 14:08:37 MST 2007


Author: dbailey
Date: Wed Apr 25 16:08:37 2007
New Revision: 387

URL: http://svn.digium.com/view/aadk?view=rev&rev=387
Log:
Made sure to delete temporary files (even when the operation failed) 

Modified:
    uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/flashupdate

Modified: uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/flashupdate
URL: http://svn.digium.com/view/aadk/uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/flashupdate?view=diff&rev=387&r1=386&r2=387
==============================================================================
--- uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/flashupdate (original)
+++ uClinux/trunk/uClinux-dist/vendors/Digium/S800I/scripts/flashupdate Wed Apr 25 16:08:37 2007
@@ -105,9 +105,6 @@
 		echo "FAILED"
 		cmp ${IMAGEFILENAME} ${MTDPART}
 	fi
-	rm -f ${SAVEDFILENAME}
-	rm -f ${IMAGEFILENAME}
-	rm -f ${MD5FILENAME}
 	echo "Finished writing firmware to FLASH..."
 	echo "Updating environment..."
 	case ${SCRIPTNAME} in
@@ -127,4 +124,9 @@
 	echo "MD5 checksum did not verify! FLASH programming aborted"
 fi
 
-sync
+# remove temp files.
+rm -f ${SAVEDFILENAME}
+rm -f ${IMAGEFILENAME}
+rm -f ${MD5FILENAME}
+
+sync



More information about the aadk-commits mailing list