From: Perforce Review Daemon <p4review AT smee.org>
To: "Andrew Stitt" <a AT t.armory.com>, "Arjan Bouter" <abouter AT sourcemage.org>, "SM-Commit Daemon" <sm-commit AT lists.ibiblio.org>, "duane_malcolm" <d.malcolm AT auckland.ac.nz>, "Ethan Grammatikidis" <eekee AT eekee.is-a-geek.org>, "Gareth Clay" <gareth AT caffeinefuelled.co.uk>, "Maurizio Boriani" <baux AT member.fsf.org>, "Pieter Lenaerts" <e-type AT sourcemage.org>, "Robin Cook" <rcook AT wyrms.net>, "Seth Woolley" <seth AT swoolley.homeip.net>, "Unet" <unet AT sourcemage.org>, "vladimir_marek" <vlmarek AT volny.cz>
Subject: [SM-Commit] PERFORCE change 78783 by Juuso Alasuutari for review
Date: Tue, 2 May 2006 00:55:01 +0100 (BST)
Change 78783 by juuso_alasuutari@juuso_alasuutari-kamayuq on 2006/05/02
00:52:02
Fixes to 52-modules.rules, small edits here and there, a ton of
new rules and some fixes to 50-default.rules. Still WIP.
@@ -1,16 +1,15 @@
# Module loading rules for systems without hotplug
+# Autoload modules that lack aliases but have them defined in
+# /etc/modprobe.conf
+ENV{MODALIAS}!="?*", SUBSYSTEM=="pnp", RUN+="/bin/sh -c 'while read id; do
/sbin/modprobe pnp:d$$id; done < /sys$devpath/id'"
+
# Check whether we need these rules for this event
ACTION!="add", GOTO="modprobe_end"
-ENV{PHYSDEVDRIVER}=="?*", SUBSYSTEM!="input", GOTO="modprobe_end"
# Autoload modules with aliases
SYSFS{modalias}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
-# Autoload modules that lack aliases but have them defined in
-# /etc/modprobe.conf
-ENV{MODALIAS}!="?*", SUBSYSTEM=="pnp", RUN+="/bin/sh -c 'while read id; do
/sbin/modprobe pnp:d$$id; done < /sys$devpath/id'"
-
# PCMCIA
SUBSYSTEM=="pcmcia_socket", RUN+="/sbin/modprobe pcmcia"
@@ -1,26 +1,25 @@
# There are a number of modifiers that are allowed to be used in some of the
# fields. See the udev man page for a full description of them.
-# All block devices
-SUBSYSTEM=="block", GROUP="disk", MODE="0640"
+# all block devices
+SUBSYSTEM=="block", GROUP="disk", MODE="0640"
SUBSYSTEM=="block", SYSFS{removable}=="1", GROUP="floppy"
# device mapper creates its own device nodes so ignore these
-#KERNEL=="dm-[0-9]*", NAME=""
+KERNEL=="dm-[0-9]*", OPTIONS="ignore_device"
KERNEL=="device-mapper", NAME="mapper/control"