Benoît Audouard wrote:
On Mon, 07 Nov 2005 22:25:28 +0100, matthieu castet wrote
Now the stat are in /sys/bus/usb/drivers/ueagle-atm/*0/stat_*
Each file have one value, but it sould be trivial do do a shell
script that as the same output than the proc file.
I'll have a look.
I have started something (attached), but still very ugly, incomplete and
untested. May be it could give you some ideas.
please provide the command to extract the appropriate version when you do it
;-) as we are not all fluent (yet) with svn (and because it's easier to
copy/paste a command).
No problem.
http://svnbook.red-bean.com/ has good documentation for svn ;)
Matthieu
DIR=/sys/bus/usb/drivers/ueagle-atm/*0/
printf "ueagle-atm status display\n"
printf "-------------------------------------------------------------\n"
printf "Driver version: %s Chipset: %s\n" xx yy
printf "Vendor ID : 0x%x Product ID : 0x%x Rev: 0x%x(%s)\n"
$(<$DIR/idVendor) $(<$DIR/idProduct) [ $(<$DIR/bcdDevice) == 0 ] || isdn && pots
printf "USB Bus : %03d\t USB Device : %03d\t Dbg : %d\n" 1 2 3