hi foxboard, adding a 10s sleep solved the problem the script now is sleep 10 echo 'boottime' > /tmp/boottime thank you very much
--- In [email protected], foxbo...@... wrote: > > > I had a similar issue; problem is, the USB-device mount is not yet > complete at the time your script runs - so the write fails. > > The hack answer is to add a "sleep 10" to the etc/init.d/boottime - > before your script that tries to use the USB. This will let the USB mount > complete . > > Of course this does not work if what you are trying to do is invoked > *before* you get as far as reading the contents of boottime > > --PeteL. > > ::::::::::::::::::::::::::::::::::::::::::::::: > geert.foxbo...@... wrote: > > --- In [email protected], "archi75012" <archi12@> wrote: > > > Do you have a working example to send me ? > > > Thanks again for your help > > > > > Maybe this article on my wiki can help: > > http://www.gevawebsolutions.com/wiki/index.php? > > title=3DScripts#automount_script > > The purpose is the following: > > When the FoxBoard starts, I want to mount a USB device connected to=20 > > the board. > > If this is the case, then I want to run a program, called "main". > > This works fine.  The only thing I get is an error message when=20 > > there's a USB stick connected to the device but there's no "main"=20 > > application on it.  That, however, can be avoided by adding the=20 > > necessary checks in the script (e.g. has the mounting failed or not). > > Hope this helps. > > Best rgds, > > --Geert > > > > >
