summaryrefslogtreecommitdiff
path: root/usb-devices
diff options
context:
space:
mode:
Diffstat (limited to 'usb-devices')
-rwxr-xr-xusb-devices20
1 files changed, 10 insertions, 10 deletions
diff --git a/usb-devices b/usb-devices
index 73c25be..7627fb1 100755
--- a/usb-devices
+++ b/usb-devices
@@ -1,12 +1,9 @@
-#!/bin/bash
-
-# Copyright: 2009 Greg Kroah-Hartman <greg@kroah.com>
-# 2009 Randy Dunlap <rdunlap@xenotime.net>
-# 2009 Frans Pop <elendil@planet.nl>
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0+
#
-# This software may be used and distributed according to the terms of
-# the GNU General Public License (GPL), version 2, or at your option
-# any later version.
+# Copyright (c) 2009 Greg Kroah-Hartman <greg@kroah.com>
+# Copyright (c) 2009 Randy Dunlap <rdunlap@xenotime.net>
+# Copyright (c) 2009 Frans Pop <elendil@planet.nl>
print_string() {
file=$1
@@ -34,6 +31,9 @@ class_decode() {
"0d") echo "c-sec" ;;
"0e") echo "video" ;;
"0f") echo "perhc" ;;
+ "10") echo "av " ;;
+ "11") echo "blbrd" ;;
+ "12") echo "bridg" ;;
"dc") echo "diagd" ;;
"e0") echo "wlcon" ;;
"ef") echo "misc " ;;
@@ -76,8 +76,8 @@ print_interface() {
driver="(none)"
fi
classname=`class_decode $class`
- printf "I: If#=%2i Alt=%2i #EPs=%2i Cls=%s(%s) Sub=%s Prot=%s Driver=%s\n" \
- ${ifnum#0} ${altset#0} ${numeps#0} $class "$classname" $subclass \
+ printf "I: If#=%2s Alt=%2i #EPs=%2i Cls=%s(%s) Sub=%s Prot=%s Driver=%s\n" \
+ 0x${ifnum#0} ${altset#0} ${numeps#0} $class "$classname" $subclass \
$protocol $driver
for endpoint in $ifpath/ep_??