functions: add loading of usb-hid via enable_usb

Testing points:
- All boards explicitely declaring CONFIG_USB_KEYBOARD=y gets USB Keyboard back under Heads
- All other boards are not impacted.
This commit is contained in:
Thierry Laurion 2022-04-05 13:53:09 -04:00
parent 97b124ab8e
commit 7b15726e1d
No known key found for this signature in database
GPG Key ID: E7B4A71658E36A93

@ -122,6 +122,14 @@ enable_usb()
|| die "xhci_pci: module load failed"
sleep 2
fi
if [ "$CONFIG_USB_KEYBOARD" = y ]; then
if ! lsmod | grep -q usbhid; then
insmod /lib/modules/usbhid.ko \
|| die "usbhid: module load failed"
fi
fi
}
confirm_gpg_card()