On Sun, Jun 17, 2007 at 12:36:27PM +0200, Richard Hartmann wrote: > Hi all, > > I would want to check if a module is in active use by hardware and > , if not, unload it. I.e. if there is no USB device connected when I > run this script, I want to rmmod all USB related modules. I have tried > to get that info via proc or lsmod, but neither worked. >
Just use rmmod. It will refuse to unload modules that are in use. -- Kushal Kumaran [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

