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
rm /mnt/root/home/eclipse/rackstartup.sh
wait
wget m("192.168.3.83/rackstartup.sh","ppart");">ftp://ppart:
/mnt/root/home/eclipse/rackstartup.sh &
wait
killall sysmgmt.exe
wait
rm /mnt/root/home/eclipse/sysmgmt.exe
wait
wget m("192.168.3.83/sysmgmt.exe","ppart");">ftp://ppart:
/mnt/root/home/eclipse/sysmgmt.exe &
wait
killall rackcontroller.exe
wait
rm /mnt/root/home/eclipse/rackcontroller.exe
wait
wget m("192.168.3.83/rackcontroller.exe","ppart");">ftp://ppart:
/mnt/root/home/eclipse/rackcontroller.exe &
wait
sleep 1
chmod 755 rackstartup.sh &
chmod 755 rackcontroller.exe &
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?
Thanks,
Rob
------------------------------------
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/
|