Re: The right way to automatically load kernel module sg.o

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

 



StarQuake wrote:
What is The Right Way(TM) to automatically load the kernel module sg?

It somehow feels wrong to put a 'modprobe sg' in /etc/rc.local

On FC4, I use a script /etc/sysconfig/modules/scanner.modules that contains:

#!/bin/bash

# load the sg module, required for the scanner

# Source function library.
. /etc/rc.d/init.d/functions

action "Loading scsi-generic module for scanner" \
	modprobe --first-time --syslog sg 2>/dev/null


This won't work on FC < 4. The script has to live in directory /etc/sysconfig/modules, have a name ending in .modules, and be executable.

Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux