Fedora Linux Support Community & Resources Center
  #1  
Old 5th February 2004, 05:44 PM
feenixx Offline
Registered User
 
Join Date: Nov 2003
Posts: 38
2.6.1 rc.sysinit script

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..
  #2  
Old 5th February 2004, 09:50 PM
kai_t Offline
Registered User
 
Join Date: Nov 2003
Posts: 60
Re: 2.6.1 rc.sysinit script

Quote:
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
else
action $"Initializing USB keyboard: " modprobe keybdev 2> /dev/null
action $"Initializing USB mouse: " modprobe mousedev 2> /dev/null
fi
fi[/code:1]
Quote:
and /proc/ksyms doesn't exist in 2.6 kernel..
/proc/kallsyms does. See http://thomer.com/linux/migrate-to-2.6.html.
  #3  
Old 6th February 2004, 11:34 AM
feenixx Offline
Registered User
 
Join Date: Nov 2003
Posts: 38
thanks kai_t!
 

Tags
rcsysinit, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mdadm gone from rc.sysinit? gtj Alpha - Beta (Fedora 9 Only) 4 24th June 2008 04:45 PM
rc.sysinit v2k Installation and Live Media 2 22nd March 2008 11:38 AM
rc.sysinit segfault Rien Using Fedora 2 13th March 2007 04:30 PM


Current GMT-time: 12:50 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat