From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dan Nicholson" Date: Wed, 28 Feb 2007 19:26:33 +0000 Subject: Re: Loading modules on demand with /sbin/hotplug Message-Id: <91705d080702281126p431780fava4568aea4cd17f3c@mail.gmail.com> List-Id: References: <20070227172320.GA10176@DervishD> In-Reply-To: <20070227172320.GA10176@DervishD> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On 2/28/07, DervishD wrote: > > In my rules file I have this: > > KERNEL=3D"pty*", OPTIONS+=3D"ignore_device" > KERNEL=3D"tty[a-z]*", OPTIONS+=3D"ignore_device" > > KERNEL=3D"tty", GROUP=3D"tty" > KERNEL=3D"vcs", GROUP=3D"tty" > KERNEL=3D"vcsa", GROUP=3D"tty" > > KERNEL=3D"hda1", GROUP=3D"disk", MODE=3D"660", SYMLINK+=3D"root" > KERNEL=3D"hdb1", GROUP=3D"disk", MODE=3D"660", SYMLINK+=3D"ubuntu" > KERNEL=3D"hdb2", GROUP=3D"disk", MODE=3D"660", SYMLINK+=3D"swap" > > KERNEL=3D"full", MODE=3D"222" > KERNEL=3D"null", MODE=3D"666" > KERNEL=3D"zero", MODE=3D"444" > > KERNEL=3D"random", MODE=3D"444" > KERNEL=3D"urandom", MODE=3D"444" > > SUBSYSTEM=3D"usb_endpoint", OPTIONS+=3D"ignore_device" > > SUBSYSTEM=3D"mem", GROUP=3D"kmem" > > SUBSYSTEM=3D"usb_device", ATTRS{serial}=3D"5B6B0990DFC6", NAME=3D"pendriv= e" > > #ACTION=3D"add", ENV{MODALIAS}=3D"?*", RUN=3D"/sbin/modprobe $env{MODALIA= S}" > #ACTION=3D"remove", ENV{MODALIAS}=3D"?*", RUN=3D"/sbin/modprobe -r $env{M= ODALIAS}" > > RUN+=3D"/usr/sbin/hal &>> /tmp/hal.log" > > ----------------------------- Some other rules that may be needed to work around issues with SCSI (this is from Linuxfromscratch): SUBSYSTEM=3D"scsi_device", ACTION=3D"add", ATTRS{type}=3D"0|7|14", RUN+=3D"/sbin/modprobe sd_mod" SUBSYSTEM=3D"scsi_device", ACTION=3D"add", ATTRS{type}=3D"1", RUN+=3D"/sbin/modprobe st" SUBSYSTEM=3D"scsi_device", ACTION=3D"add", ATTRS{type}=3D"[45]", RUN+=3D"/sbin/modprobe sr_mod" SUBSYSTEM=3D"scsi_device", ACTION=3D"add", RUN+=3D"/sbin/modprobe sg" And to load any firmware you have: ACTION=3D"add", SUBSYSTEM=3D"firmware", RUN+=3D"firmware.sh" -- Dan ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel