PDA

View Full Version : 2.6.1 rc.sysinit script


feenixx
5th February 2004, 05:44 PM
have anyone here patched rc.sysinit for 2.6 kernels yet?

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.

and /proc/ksyms doesn't exist in 2.6 kernel..

kai_t
5th February 2004, 09:50 PM
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
else
action $"Initializing USB keyboard: " modprobe keybdev 2> /dev/null
action $"Initializing USB mouse: " modprobe mousedev 2> /dev/null
fi
fi[/code:1]
and /proc/ksyms doesn't exist in 2.6 kernel..
/proc/kallsyms does. See http://thomer.com/linux/migrate-to-2.6.html.

feenixx
6th February 2004, 11:34 AM

thanks kai_t!