autoloading sg driver during boot

Aleksandar Milivojevic amilivojevic at pbl.ca
Thu Apr 14 14:27:25 UTC 2005


Mogens Kjaer wrote:

> So what is the problem with adding modprobe sg to
> the /etc/rc.d/rc.local file?

Nothing in particular.  I was simply hoping there was a way to trigger 
automatic loading of sg device driver.  On old monolitic /dev 
(pre-udev), /dev/sg* devices were precreated, so no special magic was 
needed to use them.  Udev doesn't seem to be creating /dev/sg* devices 
unless sg driver is first loaded.  However, since there are no nodes in 
/dev for it, applications can't trigger loading of it by accessing the 
device.  Chicken and egg problem.

-- 
Aleksandar Milivojevic <amilivojevic at pbl.ca>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7




More information about the users mailing list