usbprobe 173 B

12345678
  1. #!/bin/rc
  2. # list all usb devices
  3. rfork e
  4. for (id in /dev/usb[0-9]*/[0-9]*/status)
  5. if (test -e $id) {
  6. echo $id | sed 's;/status$;: ;' | tr -d '\12'
  7. grep '^[A-Z]' $id
  8. }