Le samedi 23 octobre 2004 à 18:14 +0200, [EMAIL PROTECTED] a écrit :
> Selon [EMAIL PROTECTED]:
> > > while [ ! -f /proc/bus/usb/devices ]; do sleep 2; done
> > >
> > > But what will happen if support for « /proc/bus/usb » is not compile ?
> > > Can we verify that ?
> >
> > "No devfs" or "No usbfs" are problems because programs upcalled
> > by the kernel suppose their existance.
>
> I try to update my kernel and I chose "kernel-hotplug",
> and I didn't choose "USB Filesystem".
> In this case, kernel hotplug don't upcalled userspace hotplug
> when I connect my modem or my webcam.
>
> So "while [ ! -f /proc/bus/usb/devices ]; do sleep 2; done" is good.
> thank Olivier Blin ;-)
>
> To Baud, Tux and all who want
> I believe that we must add this code to eu_dsp.
I would not put a "possibly not ending" loop...
i=0
while [ ! -f /proc/bus/usb/devices -a ${i} -lt 10 ]; do sleep 2; i=`expr ${i} +
1` ;done
if [ ${i} -eq 10 ] ; then echo "/proc/bus/usb/devices did not appear in
time..." ; fi
just in case ?
what's the error afterwards ? (in case /proc/bus/usb/devices never appears ?)
@++
Ben'. aka baud123