|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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. Any hints appreciated, Richard |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
>
> Just use rmmod. It will refuse to unload modules that are in use. At least for ipw2100, that is not the case. It unloads just fine while eth2 is up and happily transmitting data. Richard |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Am 2007-06-17 18:41:35, schrieb Richard Hartmann:
> > > >Just use rmmod. It will refuse to unload modules that are in use. > > > At least for ipw2100, that is not the case. It unloads just fine while > eth2 is up and happily transmitting data. This seems to be a bug! You should report it. Thanks, Greetings and nice Day Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFGeTnKC0FPBMSS+BIRAsi4AJ4i1B07cZml3eht11Ao1v F9mBU5VQCfeJzh JbGjkGERUIUJ+MZVKABAnuU= =ZmNU -----END PGP SIGNATURE----- |
|
![]() |
| Outils de la discussion | |
|
|