Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
loading kernel module by service?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mathfeel
l33t
l33t


Joined: 03 Aug 2004
Posts: 700

PostPosted: Sat Nov 04, 2006 1:16 pm    Post subject: loading kernel module by service? Reply with quote

I have certain service (tuncfg) that requires the kernel modules TUN to work. RIght now, I included a line tun in /etc/modules.autoload.d/kernel-2.6 to have the module load before the service. Is it possible in general to specify the module required by certain service and have it load the module when one starts the service?
_________________
-----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sat Nov 04, 2006 4:03 pm    Post subject: Reply with quote

modprobe module_name in the service start script, rmmod module_name in the service shutdown script.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum