Well for me it happen real often that mgmt.o don't want to upload....(Uploading mgmt.o failed continuing anyway), but in fact like 8 on 10 the line can goes up and it work fine.... So for me its a good thing. =) The only thing i don't understand is why mgmt.o upload fail ... St�phane. -----Message d'origine----- De: Simon Blandford [mailto:[EMAIL PROTECTED]] Date: mardi 28 ao�t 2001 21:04 �: [EMAIL PROTECTED] Objet: [speedtouch] Uploading mgmt.o failed Continuing anyway? Why? Hi, I see allot of the above error message for some reason as described in an earlier post. I fixed it by changing modem_run.c to quit instead of carry on. Question for Benoit: Why does modem_run continue it it fails here? Is there a reason for this? It just seems to end in disaster for me, especially if modem_run is being called from a startup script as it is in Smoothwall, for example. When modem_run quit I found I could simply run modem_run again and it worked the second time. The next logical step was to change modem_run.c to retry automatically. I limited the number of retries to prevent any infinite hanging. Here is the new section of code I am using. Benoit, can you comment on this please? Regards, Simon B. if (file != NULL) { while(1) { if (upload_microcode (fdusb,file,verbose) >= 0) break; printf("Uploading %s failed.",file); if (i > 9) { printf("Quitting!\n"); return -1; } else { printf("Retrying.\n"); } i++; sleep(2); } sleep(1); } Liste de diffusion modem ALCATEL SpeedTouch USB Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe Liste de diffusion modem ALCATEL SpeedTouch USB Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
