On Monday 29 June 2009, Frans Pop wrote: > On Monday 29 June 2009, Anton Zinoviev wrote: > > 2. Can console-setup-udeb expect that /proc/bus/usb is mounted? Is > > there some dependency about this? > > For 2.6.29 and 2.6.30 you can't depend on it being mounted. See > usb-kbd.c in kbd-chooser; again the code is fairly simple (I hacked on > it ages ago so it must be as I knew even less C then than I know now). > > But note that /proc/bus/usb (or rather usbfs) is going away in 2.6.31! > See #534412, it's very relevant.
If you do want to use USB information, then the best solution is to take it directly from sysfs (better than mounting debugfs). Almost all information in /proc/bus/usb/devices can also be found in sysfs. See the usb-list script I recently added for installation-report for example code how to walk through sysfs correctly. -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org