Sunday, June 17, 2007

Prevent Auto-Loading by Udev

1. To prevent services like net.eth0 from autoloading:

- Edit the file /etc/conf.d/rc
- Look for the line RC_PLUG_SERVICES=""
- Enter the name of the service that you don't want to be autoloaded in front of an exclamation sign: RC_PLUG_SERVICES="!net.eth0 !service2 !service3"

2. To prevent
modules like bcm43xx from autoloading:

- $mkdir /etc/modprobe.d (if the direcotry does not exist)
- create the file /etc/modprobe.d/blacklist
- Enter the name of the module: blacklist bcm43xx

No comments: