r8152 - trunk/udev-config

bryan at linuxfromscratch.org bryan at linuxfromscratch.org
Fri Jun 8 16:21:11 PDT 2007


Author: bryan
Date: 2007-06-08 17:21:11 -0600 (Fri, 08 Jun 2007)
New Revision: 8152

Modified:
   trunk/udev-config/25-lfs.rules
   trunk/udev-config/ChangeLog
Log:
Add rules for DVB and floppy devices.  Fixes issues reported at http://marc.info/?l=linux-hotplug-devel&m=118093968324419&w=2 by Alexander.


Modified: trunk/udev-config/25-lfs.rules
===================================================================
--- trunk/udev-config/25-lfs.rules	2007-06-07 18:05:03 UTC (rev 8151)
+++ trunk/udev-config/25-lfs.rules	2007-06-08 23:21:11 UTC (rev 8152)
@@ -102,6 +102,10 @@
 KERNEL=="vbi[0-9]*",    GROUP="video"
 KERNEL=="vtx[0-9]*",    GROUP="video"
 
+# DVB devices
+
+SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
+
 # Storage/memory devices
 
 KERNEL=="fd[0-9]*",             GROUP="floppy"
@@ -116,6 +120,10 @@
 KERNEL=="loop[0-9]*",           GROUP="disk"
 KERNEL=="md[0-9]*",             GROUP="disk"
 
+# Extra floppy devices based on type
+
+KERNEL=="fd[0-9]*", ACTION=="add", ATTRS{cmos}=="?*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0640 -G floppy /dev/%k"
+
 # dmsetup and lvm2 related programs create devicemapper devices so we prevent
 # udev from creating them
 

Modified: trunk/udev-config/ChangeLog
===================================================================
--- trunk/udev-config/ChangeLog	2007-06-07 18:05:03 UTC (rev 8151)
+++ trunk/udev-config/ChangeLog	2007-06-08 23:21:11 UTC (rev 8152)
@@ -1,3 +1,8 @@
+2007-06-08	Bryan Kadzban	<bryan at linuxfromscratch.org>
+	* 25-lfs.rules: Add rules for DVB devices (create nodes in /dev/dvb/)
+	  and floppies (create extra nodes based on CMOS type), copied from
+	  the SuSE rules file.  Thanks to Alexander Patrakov for the bugreport.
+
 2007-03-04      Matthew Burgess <matthew at linuxfromscratch.org>
         * Makefile: Use `udevd --version' to work out what version of Udev is
 	  installed (requires Udev >= 106)




More information about the lfs-book mailing list