Author: matthew
Date: 2006-02-21 14:20:52 -0700 (Tue, 21 Feb 2006)
New Revision: 7394
Modified:
branches/udev_update/BOOK/chapter01/changelog.xml
branches/udev_update/BOOK/chapter06/udev.xml
Log:
Use non-deprecated method for accessing the MODALIAS key in the rules file
Modified: branches/udev_update/BOOK/chapter01/changelog.xml
===================================================================
--- branches/udev_update/BOOK/chapter01/changelog.xml 2006-02-21 21:05:04 UTC
(rev 7393)
+++ branches/udev_update/BOOK/chapter01/changelog.xml 2006-02-21 21:20:52 UTC
(rev 7394)
@@ -40,6 +40,11 @@
<para>Febraury 20, 2006</para>
<itemizedlist>
<listitem>
+ <para>[matthew] - Use non-deprecated format for accessing MODALIAS
+ keys in the Udev rules file, and prevent the "$" from being
+ expanded by the shell.</para>
+ </listitem>
+ <listitem>
<para>[matthew] - Add patches 009 and 010 from Bash upstream.</para>
</listitem>
<listitem>
Modified: branches/udev_update/BOOK/chapter06/udev.xml
===================================================================
--- branches/udev_update/BOOK/chapter06/udev.xml 2006-02-21 21:05:04 UTC
(rev 7393)
+++ branches/udev_update/BOOK/chapter06/udev.xml 2006-02-21 21:20:52 UTC
(rev 7394)
@@ -103,10 +103,10 @@
load kernel modules.</para>
<screen><userinput>sed -i 147,150d /etc/udev/rules.d/25-lfs.rules
-cat >> /etc/udev/rules.d/25-lfs.rules << EOF
+cat >> /etc/udev/rules.d/25-lfs.rules << "EOF"
# Rules to allow hotplugging of devices with modular drivers
-ACTION=="add", SUBSYSTEM=="?*", MODALIAS=="?*", \
- RUN+="/sbin/modprobe $modalias"
+ACTION=="add", SUBSYSTEM=="?*", ENV{MODALIAS}=="?*", \
+ RUN+="/sbin/modprobe $env{MODALIAS}"
ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[07]", \
RUN+="/sbin/modprobe sd_mod"
EOF</userinput></screen>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page