'pupscan' fixed for 3.5+ kernels
March 26, 2013 —
BarryK
In my previous post about the debut of Raring Puppy, I encountered various problems, including missing /proc/bus/usb:
http://bkhome.org/archive/blog2/201303/raring-puppy-debut.html
In earlier pups, /etc/rc.d/rc.sysinit mounts 'usbfs' on /proc/bus/usb, which makes available file /proc/bus/usb/devices, which is an easy way to read info on all plugged-in usb devices.
Hardinfo and pupscan use /proc/bus/usb/devices. The former is a third-party application, and probably recent versions are no longer dependent on /proc/bus/usb, or I hope so.
PupScan is a script that probes for information on hardware interfaces, written by me and included in Woof (see System menu).
The 3.5+ kernel has removed support for /proc/bus/usb. Fortunately, there is a script 'usb-devices' which is part of the 'usbutils' package, that returns the same information as /proc/bus/usb/devices.
usb-devices scans /sys/kernel/debug/usb/devices if the debugfs is enabled, otherwise scans /sys/bus/usb.
I have fixed script 'pupscan' in Woof:
http://bkhome.org/fossil/woof2.cgi/info/edf062515a
Tags: woof