Re: Dynamically unload kernel modules?
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 kushal@it.iitb.ac.in
Reply to: