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

Bug#355851: a blindunfriendly debian installer problem

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) {
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.

Attachment: pgpNiWle6yv6N.pgp
Description: PGP signature

Reply to: