mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-30 09:48:56 +00:00
baa30a2026
USB smart card readers are most full speed devices, and there is no "rate-matching hubs" beneath the root hub on older (e.g. GM45) plat- forms, which has companion OHCI or UHCI controllers and needs cor- responding drivers to communicate with card readers directly plugged into the motherboard, otherwise a discrete USB hub should be inserted between the motherboard and the reader. This time I make inserting linux modules for OHCI and UHCI controllable with option CONFIG_LINUX_USB_COMPANION_CONTROLLER. A linux config for x200 is added as an example. Tested on my x200s and elitebook revolve 810g1.
22 lines
308 B
Bash
Executable File
22 lines
308 B
Bash
Executable File
#!/bin/sh
|
|
# Mount a USB device
|
|
. /etc/functions
|
|
|
|
enable_usb
|
|
|
|
if ! lsmod | grep -q usb_storage; then
|
|
insmod /lib/modules/usb-storage.ko \
|
|
|| die "usb_storage: module load failed"
|
|
sleep 5
|
|
fi
|
|
|
|
if [ ! -d /media ]; then
|
|
mkdir /media
|
|
fi
|
|
|
|
if [ -z "$1" ]; then
|
|
mount -o ro /media
|
|
else
|
|
mount -o ro $1 /media
|
|
fi
|