[linux-l] alle module beenden

Pascal Volk linux-l at edelhost.de
Mi Jul 27 21:23:12 CEST 2005


* Am Mi, 27 Jul 2005 schrub Ivan Villanueva:

> 
> Hallo,
> kennt jemand eine Möglichkeit, alle geladene Module zu beenden ?
> Das Stromkabel rauszustecken ist die Einzige, die mir eingefallen ist.
> 

Eine mögliche Methode wäre:
    cat /proc/modules | gawk '{print $1}' >> modules.lst
    for i in `cat modules.lst`; do rmmod -f $i; done

Aber:
    rmmod(8):
    -f --force
        This option can be extremely dangerous: it has no effect unless
        CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was compiled.
        With this option, you can remove modules which are being used,
        or which are not designed to be removed, or have been marked as
        unsafe (see lsmod(8)).

Ich frage mich nur wozu das nützlich sein soll. Vielleicht doch eher den
Kernel ohne Module-Support backen?


Gruß
Pascal
-- 
rm -Rfv /tmp/../ && echo "are you sure???"

Die BeLUG im IRC:
irc://irc.freenode.net/#belug
 ____ ____ ____ ____ ____ _________ ____ ____ ____ ____ ____ ____ 
 ||/ |||j |||o |||i |||n |||       |||# |||b |||e |||l |||u |||g ||
 ||__|||__|||__|||__|||__|||_______|||__|||__|||__|||__|||__|||__||
 |/__\|/__\|/__\|/__\|/__\|/_______\|/__\|/__\|/__\|/__\|/__\|/__\|

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 189 bytes
Beschreibung: Digital signature
URL         : <https://mlists.in-berlin.de/pipermail/linux-l-mlists.in-berlin.de/attachments/20050727/12b1f086/attachment.sig>


Mehr Informationen über die Mailingliste linux-l