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.

:::::::::::::::::::::::::::::::::::::::::::::::
[email protected] wrote:
> --- In [email protected], "archi75012" <arch...@...> 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
> 
> 


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/foxboard/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/foxboard/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to