local modules i module bInterfaceClass bInterfaceProtocol
+ for i in /sys/bus/usb/devices/*-*:*; do
+ # standard usb keyboards
+ if [ -f $i/bInterfaceClass -a -f $i/bInterfaceProtocol ]; then
+ bInterfaceClass=$(cat $i/bInterfaceClass)
+ bInterfaceProtocol=$(cat $i/bInterfaceProtocol)
+ if [ "$bInterfaceClass" = "03" -a "$bInterfaceProtocol" = "01" ]; then
+ module=$(readlink $i/driver/module)
+ module=$(basename $module)
+
+ if [ -n "$module" ]; then
+ verbose "Found USB Keyboard driver: $module"
+ modules="$modules $module"
+ fi
+ fi
+ fi
+ done
+
for i in /sys/class/input/input*; do
# standard usb keyboards
if [ -f $i/device/bInterfaceClass -a -f $i/device/bInterfaceProtocol ]; then