Nowe posty

Autor Wątek: Where to write to load some modules  (Przeczytany 2841 razy)

Offline Alexandr

  • Users
  • Nowy na forum
  • *
  • Wiadomości: 15
    • Zobacz profil
Where to write to load some modules
« dnia: 2008-01-30, 09:48:20 »
Hi all. I've got a new question: where (which file) I have to write some script or simply "modprobe APM" (maybe /etc/init.d) to load module APM during booting?

Offline Piotr Chmura

  • Administrator
  • Guru
  • *****
  • Wiadomości: 5060
    • Zobacz profil
Where to write to load some modules
« Odpowiedź #1 dnia: 2008-01-30, 10:09:21 »
I think it's distribution dependent. There is, at least in gentoo, file: /etc/modules.autoload/kernel2.x which contains modules names to load at start.

Edit:
ArchLinux: option in /etc/rc.conf

Offline ultr

  • Users
  • Guru
  • *****
  • Wiadomości: 1188
    • Zobacz profil
Where to write to load some modules
« Odpowiedź #2 dnia: 2008-01-30, 10:10:31 »
Hello,

You would rather use /etc/modules file to do this. This is it's name in Debian, in other distros it may be modules.conf of something similar.

Remember to use only modules' names there (no `modproble` command).


Regards.

Offline Alexandr

  • Users
  • Nowy na forum
  • *
  • Wiadomości: 15
    • Zobacz profil
Where to write to load some modules
« Odpowiedź #3 dnia: 2008-01-31, 09:41:59 »
Thanks. Placing string "apm" in /etc/modules helped, module apm successfuly loads during booting