r7621 - trunk/udev-config

archaic at linuxfromscratch.org archaic at linuxfromscratch.org
Mon May 15 18:33:32 PDT 2006


Author: archaic
Date: 2006-05-15 19:33:31 -0600 (Mon, 15 May 2006)
New Revision: 7621

Added:
   trunk/udev-config/CHANGELOG
Modified:
   trunk/udev-config/25-lfs.rules
   trunk/udev-config/26-modprobe.rules
   trunk/udev-config/27-firmware.rules
Log:
A few more tweaks to layout plus the initial changes to a new ruleset.

Modified: trunk/udev-config/25-lfs.rules
===================================================================
--- trunk/udev-config/25-lfs.rules	2006-05-15 23:54:58 UTC (rev 7620)
+++ trunk/udev-config/25-lfs.rules	2006-05-16 01:33:31 UTC (rev 7621)
@@ -24,43 +24,31 @@
 
 # Core kernel devices
 
-KERNEL=="ptmx",		MODE="0666",	GROUP="tty"
-KERNEL=="random",	MODE="0444"
-KERNEL=="urandom",	MODE="0444"
-KERNEL=="kmem",		MODE="0640",	GROUP="kmem"
-KERNEL=="mem",		MODE="0640",	GROUP="kmem"
-KERNEL=="port",		MODE="0640",	GROUP="kmem"
-KERNEL=="null",		MODE="0666"
-KERNEL=="zero",		MODE="0666"
-KERNEL=="full",		MODE="0666"
-KERNEL=="aio",		MODE="0444"
-KERNEL=="kmsg",		MODE="0600"
-KERNEL=="rtc",		MODE="0666"
+KERNEL=="mem",          MODE="640", GROUP="kmem"
+KERNEL=="kmem",         MODE="640", GROUP="kmem"
+KERNEL=="null",         MODE="666"
+KERNEL=="port",         MODE="640", GROUP="kmem"
+KERNEL=="zero",         MODE="666"
+KERNEL=="full",         MODE="666"
+KERNEL=="random",       MODE="664"
+KERNEL=="urandom",      MODE="664"
+KERNEL=="rtc",          MODE="664"
 
-# Comms devices
+# TTY devices (both communications and terminal types)
 
-KERNEL=="ttyS[0-9]*",                   GROUP="dialout"
-KERNEL=="ttyUSB[0-9]*",                 GROUP="dialout"
-KERNEL=="rfcomm[0-9]*",                 GROUP="dialout"
-KERNEL=="tty[BCDEFHILMPRSTUVWX][0-9]*", GROUP="dialout"
-KERNEL=="ttyS[ACIR][0-9]*",             GROUP="dialout"
-KERNEL=="ttyUSB[0-9]*",                 GROUP="dialout"
-KERNEL=="ttyACM[0-9]*",                 GROUP="dialout"
-KERNEL=="ippp[0-9]*",                   GROUP="dialout"
-KERNEL=="isdn[0-9]*",                   GROUP="dialout"
-KERNEL=="isdnctrl[0-9]*",               GROUP="dialout"
-KERNEL=="capi",						NAME="capi20",	SYMLINK="isdn/capi20"
-KERNEL=="capi?*",					NAME="capi/%n",	GROUP="dialout"
-KERNEL=="dcbri[0-9]*",                  GROUP="dialout"
-KERNEL=="ircomm[0-9]*",                 GROUP="dialout"
+SUBSYSTEM=="tty",                   GROUP="dialout"
+KERNEL=="ptmx",         MODE="666", GROUP="tty"
+KERNEL=="pty[p-za-e]*", MODE="666", GROUP="tty"
+KERNEL=="tty[p-za-e]*",             GROUP="tty"
+KERNEL=="capi",                                     NAME="capi20", SYMLINK+="isdn/capi20"
+KERNEL=="capi?*",                                   NAME="capi/%n"
+KERNEL=="tty",          MODE="620", GROUP="tty"
+KERNEL=="tty[0-9]*",    MODE="620"  GROUP="tty"
+KERNEL=="vcs",                      GROUP="tty"
+KERNEL=="console",      MODE="600"  GROUP="tty"
 
-# TTY's
+# End of edits 20060615 (archaic)
 
-KERNEL=="tty",		MODE="0666",	GROUP="tty"
-KERNEL=="tty[0-9]*",	MODE="0666"	GROUP="tty"
-KERNEL=="vcs*",		MODE="0600"
-KERNEL=="console",	MODE="0622"	GROUP="tty"
-
 # ALSA devices go in their own subdirectory
 
 KERNEL=="controlC[0-9]*",		GROUP="audio",	NAME="snd/%k"

Modified: trunk/udev-config/26-modprobe.rules
===================================================================
--- trunk/udev-config/26-modprobe.rules	2006-05-15 23:54:58 UTC (rev 7620)
+++ trunk/udev-config/26-modprobe.rules	2006-05-16 01:33:31 UTC (rev 7621)
@@ -1,5 +1,3 @@
-# /etc/udev/rules.d/26-modprobe.rules: Rules that require modprobe.
-
 # Generic rule to allow loading modular drivers for existing hardware
 
 ACTION=="add", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
@@ -12,7 +10,7 @@
 # st/osst           1 (TYPE_TAPE)
 # sr                4 (TYPE_WORM), 5 (TYPE_ROM)
 
+SUBSYSTEM=="scsi_device", ACTION=="add",                        RUN+="/sbin/modprobe sg"
 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="1",      RUN+="/sbin/modprobe st"
 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{type}=="[45]",   RUN+="/sbin/modprobe sr_mod"
-SUBSYSTEM=="scsi_device", ACTION=="add",                        RUN+="/sbin/modprobe sg"

Modified: trunk/udev-config/27-firmware.rules
===================================================================
--- trunk/udev-config/27-firmware.rules	2006-05-15 23:54:58 UTC (rev 7620)
+++ trunk/udev-config/27-firmware.rules	2006-05-16 01:33:31 UTC (rev 7621)
@@ -1,3 +1,3 @@
-# /etc/udev/rules.d/27-firmware.rules: Load firmware for devices that need it
+# This rule simply calls the firmware_helper program to load firmware
 
 ACTION=="add", SUBSYSTEM=="firmware", RUN+="/lib/udev/firmware_helper"

Added: trunk/udev-config/CHANGELOG
===================================================================
--- trunk/udev-config/CHANGELOG	                        (rev 0)
+++ trunk/udev-config/CHANGELOG	2006-05-16 01:33:31 UTC (rev 7621)
@@ -0,0 +1,8 @@
+n/a - May 15, 2006
+	* Part one of 25-lfs.rules rewrite
+	* Some minor tweaking of the layout
+
+n/a - May 12, 2006
+	* Initial import of the udev-config directory.
+	* Reorganized and modularized the rules files.
+	* Added explanatory comments




More information about the lfs-book mailing list