The MD5 sum seems like a good approach.  For anyone reading this, I found 
this link useful:

http://askubuntu.com/questions/318530/generate-md5-checksum-for-all-files-in-a-directory

find -exec md5sum "{}" \; > checklist.chk

md5sum -c checklist.chk   # runs through the list to check them



On Saturday, September 6, 2014 6:33:33 PM UTC-4, William Hermans wrote:
>
> Define "something gets messed up". You're going to have to know what this 
> something *is* before solving the issue. But perhaps you could use an MD5 
> sum to verify the file ? Then when there is a mismatch you delete the 
> target file and try again ?
>
>
> On Sat, Sep 6, 2014 at 3:02 PM, Brent <bren...@hotmail.com <javascript:>> 
> wrote:
>
>> I have a Qt application that runs at start up.  Currently, I update my 
>> application by allowing the user to press a button inside of my application 
>> which copies the updated application files from the USB drive to the eMMC. 
>>  It then sets a flag inside of a text file to "1", and reboots.  When my 
>> start up script is ran, it firsts checks the text file to see if there is a 
>> "1", and if so it overwrites the old files with the new ones and then 
>> launches the application.  This works most of the time, but there are 
>> occasions where something gets messed up and the new application does not 
>> start.
>>
>> I was wondering if there is a better way of updating my application. 
>>  Could I use opkg to do this, and if so, how?  Will it allow my application 
>> to be running while it is updating it?  What is the proper way to do this? 
>>  Thanks in advance for your help!
>>
>> -- 
>> For more options, visit http://beagleboard.org/discuss
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to beagleboard...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to