nxtcomputing wrote:
> Hi All,
>
> I have a bunch of TS-7500 boards with microSD cards that I am trying to
> update programs on. I have written a script file that telnets to the board,
> removes any existing update files, uses wget to download the update file to
> the board, then executes the update script.
>
> The update script is shown below:
> ----------------------------------------
> #! /bin/sh
>
> -snip-
> wait
> sleep 10
> umount -a
> reboot
> ----------------------------------------
>
> This almost always works but sometimes does not. When it doesn't work the
> files that were supposed to copy are either not there or not executable. I
> think there is a delay with the microSD card writing. Or it reboots before
> the microSD is done.
>
> Does anyone have suggestions on how to fix this?
>
Try replacing that sleep 10 with sync, sync shouldn't return till the
disk cache has been completely written out.
--
Jason Stahls
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|