Thanks for the clear explanation! On Nov 7, 2007 2:41 AM, Anders Johansson <[EMAIL PROTECTED]> wrote: > > On Tuesday 06 November 2007 16:54:22 Chee How Chua wrote: > > > echo "install yealink /bin/true" >> /etc/modprobe.d/yealink > > > > > > should help with that too. > > > > > > darix > > > > Can you kindly explain what effect this line has? I know that it will > > create/append a file named 'yealink' under /etc/modprobe.d, and that > > this file will contain the line 'install yealink /bin/true'. But what > > will happen when you do this? > > It will prevent the module "yealink" from ever being loaded. > > The "install" directive tells modprobe what to do instead of loading the > module. It can for example be used if certain commands need to be run before > a module is loaded, in which case the line would contain those commands, and > end with another call to modprobe > > In this case it will only run the command /bin/true, which does nothing and > returns successfully > > Anders > > -- > Madness takes its toll
On Nov 7, 2007 4:07 AM, Thomas Hertweck <[EMAIL PROTECTED]> wrote: > > Chee How Chua wrote: > >> echo "install yealink /bin/true" >> /etc/modprobe.d/yealink > >> > >> should help with that too. > > > > Can you kindly explain what effect this line has? I know that it will > > create/append a file named 'yealink' under /etc/modprobe.d, and that > > this file will contain the line 'install yealink /bin/true'. But what > > will happen when you do this? > > You should read "man modprobe.conf". An "install" primitive like the one > mentioned above in modprobe's configuration file will tell modprobe to > run the specified command /bin/true instead of actually inserting the > module in the kernel. In other words, whenever modprobe receives the > command to load the "yealink" module, it will run /bin/true instead > which always returns successful. The solution presented above will > therefore effectively prevent the loading of the yealink kernel module > via modprobe. However, using insmod might still work for the yealink module. > > Cheers, Th. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
