<p dir="ltr"><br>
On Dec 27, 2012 12:16 PM, "Tom Gundersen" <<a href="mailto:teg@jklm.no">teg@jklm.no</a>> wrote:<br>
><br>
> Make the hook a bit more generic by including non-usb keyboard drivers.<br>
> This should mean that any keyboard will now work in the initramfs.<br>
><br>
> In addition to fixing some uncommon setups requiring additional keyboard<br>
> modules, this would allow us to no longer build in the atkbd module (and<br>
> hence i8042) in our stock kernels, which will remove an ugly error message<br>
> on boot for systems without the i8042 controller.<br>
><br>
> Signed-off-by: Tom Gundersen <<a href="mailto:teg@jklm.no">teg@jklm.no</a>><br>
> ---<br>
><br>
> v2: rename to 'keyboard' and improve the help message.<br>
><br>
>  install/keyboard | 31 +++++++++++++++++++++++++++++++<br>
>  install/usbinput | 29 +----------------------------</p>
<p dir="ltr">Thanks. I guess the default config needs updating too, but I'll take care of that.</p>
<p dir="ltr">>  2 files changed, 32 insertions(+), 28 deletions(-)<br>
>  create mode 100644 install/keyboard<br>
>  mode change 100644 => 120000 install/usbinput<br>
><br>
> diff --git a/install/keyboard b/install/keyboard<br>
> new file mode 100644<br>
> index 0000000..91a00e7<br>
> --- /dev/null<br>
> +++ b/install/keyboard<br>
> @@ -0,0 +1,31 @@<br>
> +#!/bin/bash<br>
> +<br>
> +build() {<br>
> +    local major minor<br>
> +<br>
> +    add_checked_modules -f '(_cs|sl811_hcd|isp116x_hcd)' '/usb/host'<br>
> +<br>
> +    # As of 3.5, modaliases seem to be exported for HID<br>
> +    # devices, so we can leverage autodetection.<br>
> +    IFS=.- read major minor _ <<<"$KERNELVERSION"<br>
> +    if (( major > 3 || (major == 3 && minor >= 5) )); then<br>
> +        add_checked_modules '/hid/hid'<br>
> +    else<br>
> +        add_all_modules '/hid/hid'<br>
> +    fi<br>
> +<br>
> +    add_module 'usbhid'<br>
> +<br>
> +    add_checked_modules '/input/keyboard'<br>
> +}<br>
> +<br>
> +help() {<br>
> +    cat <<HELPEOF<br>
> +This hook loads the necessary modules for keyboard devices. As a side-effect<br>
> +modules for some non-keyboard input devices might be added to, but this should<br>
> +not be relied on. Detection will take place at runtime. To minimize the modules<br>
> +in the image, add the autodetect hook too.<br>
> +HELPEOF<br>
> +}<br>
> +<br>
> +# vim: set ft=sh ts=4 sw=4 et:<br>
> diff --git a/install/usbinput b/install/usbinput<br>
> deleted file mode 100644<br>
> index a292345..0000000<br>
> --- a/install/usbinput<br>
> +++ /dev/null<br>
> @@ -1,28 +0,0 @@<br>
> -#!/bin/bash<br>
> -<br>
> -build() {<br>
> -    local major minor<br>
> -<br>
> -    add_checked_modules -f '(_cs|sl811_hcd|isp116x_hcd)' '/usb/host'<br>
> -<br>
> -    # As of 3.5, modaliases seem to be exported for HID<br>
> -    # devices, so we can leverage autodetection.<br>
> -    IFS=.- read major minor _ <<<"$KERNELVERSION"<br>
> -    if (( major > 3 || (major == 3 && minor >= 5) )); then<br>
> -        add_checked_modules '/hid/hid'<br>
> -    else<br>
> -        add_all_modules '/hid/hid'<br>
> -    fi<br>
> -<br>
> -    add_module 'usbhid'<br>
> -}<br>
> -<br>
> -help() {<br>
> -    cat <<HELPEOF<br>
> -This hook loads the necessary modules for an usb input device.  Detection<br>
> -will take place at runtime. To minimize the modules in the image, add the<br>
> -autodetect hook too.<br>
> -HELPEOF<br>
> -}<br>
> -<br>
> -# vim: set ft=sh ts=4 sw=4 et:<br>
> diff --git a/install/usbinput b/install/usbinput<br>
> new file mode 120000<br>
> index 0000000..fbfe724<br>
> --- /dev/null<br>
> +++ b/install/usbinput<br>
> @@ -0,0 +1 @@<br>
> +keyboard<br>
> \ No newline at end of file<br>
> --<br>
> 1.8.0.2<br>
><br>
</p>