Originally Posted by feenixx
I would like to use it with both 2.4 and 2.6 kernels, so keybdev and mousedev initializing
should remain for 2.4 series.
I think I got the following code from a posting on one of Red Hat's mailing lists, some months ago:[code:1]needusbstorage=
if [ $usb = "1" ]; then
needusbstorage=`LC_ALL=C grep -e "^I.*Cls=08" /proc/bus/usb/devices 2>/dev/null`
LC_ALL=C grep 'hid' /proc/bus/usb/drivers || action $"Initializing USB HID interface: " modprobe hid 2> /dev/null
if strstr `uname -r` 2.6.; then
action $"Initializing USB keyboard: " modprobe usbkbd 2> /dev/null
action $"Initializing USB mouse: " modprobe usbmouse 2> /dev/null
action $"Initializing USB keyboard: " modprobe keybdev 2> /dev/null
action $"Initializing USB mouse: " modprobe mousedev 2> /dev/null
and /proc/ksyms doesn't exist in 2.6 kernel..
does. See http://thomer.com/linux/migrate-to-2.6.html