2 USBKBD_RCSID='$Revision$ $Date:: $'
4 # geninitrd mod: usbkbd
6 # setup geninitrd module
11 find_modules_usbkbd() {
12 debug "Finding USB keyboard modules"
14 if [ "$(echo /sys/class/input/input*)" = "/sys/class/input/input*" ]; then
20 for i in /sys/class/input/input*; do
21 [ ! -f $i/device/bInterfaceClass -o ! -f $i/device/bInterfaceProtocol ] && continue
22 bInterfaceClass=$(cat $i/device/bInterfaceClass)
23 bInterfaceProtocol=$(cat $i/device/bInterfaceProtocol)
24 if [ "$bInterfaceClass" = "03" -a "$bInterfaceProtocol" = "01" ]; then
25 module=$(readlink $i/device/driver/module)
26 module=$(basename $module)
28 if [ -n "$module" ]; then
29 debug "Found USB Keyboard: $(cat $i/name)"
30 modules="$modules $module"
35 if [ -n "$modules" ]; then
37 for m in $(find_modules_by_class "0c03"); do