[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Module bei Bedarf automatisch laden.



* Ruediger Noack <ernohl@gmx.de> [21-08-02 22:43]:

> Ich will einfach nicht glauben, dass ich eine Quelldatei für 
> modules.conf unter /etc/modutils von Hand anlegen muss.

Hallo Ruediger,

die meisten Programme sollten das selbständig tun.
z.B. in den postinst-Skripten:

# Automatically added by dh_installmodules
if [ "$1" = "configure" -a -x /sbin/update-modules ]; then
        update-modules
fi
# End automatically added section
        
Daran siehst du schon, dass eigene Einträge in der 
/etc/modules.conf nicht lange Bestand haben.
Dann lieber gleich eine Datei unter /etc/modutils anlegen
und dann update-modules starten.
 
Hier mal ein Beispiel für meinen Scanner:

$ cat /etc/modutils/scanner
# Aliase fuer Scanner und Scsi_Hostadapter

alias scsi_hostadapter aha152x
options aha152x aha152x=0x140,11,6,1,1,0,0,0

alias char-major-21     sg
post-install sg echo "scsi add-single-device 1 0 0 0" >/proc/scsi/scsi

$ grep -5 "options aha152x" /etc/modules.conf

### update-modules: start processing /etc/modutils/scanner
# Aliase fuer Scanner und Scsi_Hostadapter

alias scsi_hostadapter aha152x
options aha152x aha152x=0x140,11,6,1,1,0,0,0

alias char-major-21     sg
post-install sg echo "scsi add-single-device 1 0 0 0" >/proc/scsi/scsi

### update-modules: end processing /etc/modutils/scanner

Module die du eh beim Starten lädst, kannst du in /etc/modules
einfügen, per Hand oder mit modconf.

Gruss Uwe

Attachment: pgpSk2y40AHyB.pgp
Description: PGP signature


Reply to: