[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#355851: a blindunfriendly debian installer problem



Here is answer from Dave:

Frans Pop, le Mon 27 Mar 2006 23:52:49 +0200, a écrit :
> On Tuesday 21 March 2006 03:03, Frans Pop wrote:
> > On Tuesday 21 March 2006 02:12, Samuel Thibault wrote:
> > > > BTW, is /etc/brltty/usbfs really a good location for that?
> > >
> > > Yes, because the brltty-udeb package contains that directory, so we
> > > are sure that it will exist.
> >
> > Note that kbd-chooser also uses usbfs and contains this code (slightly
> > rewritten for demonstration) in kbd-chooser/usb-kbd.c:
> >
> > fp = fopen ("/proc/bus/usb/devices", "r");
> > if (fp == NULL) {       // try harder.
> >     [...]
> >     if system ("mount -t  usbfs usbfs /proc/bus/usb") = 0) {
> >         mounted_fs=1;
> >         [...]
> >     }
> >     [...]
> > }
> > if (mounted_fs)
> >     system ("umount /proc/bus/usb");
> >
> > Which means that it looks if /proc/bus/usb/devices is already mounted
> > and, if not, mounts it. It's only unmounted afterwards if it was
> > mounted by this program.
> >
> > IMO it would be better to standardize on this location.

« I don't think that's a good idea. It requires that /proc be already
mounted. If we don't also mount /proc then we can't mount usbfs in the
standard palce, and, as a result, brltty still can't see USB devices. If
we do mount /proc then system boot scripts are subsequently at risk of
failing. »

Note: brltty needs to be started as soon as possible.

Regards,
Samuel



Reply to: