aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2006-02-21 21:20:52 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2006-02-21 21:20:52 +0000
commitfb6fcc5ec2c3a41a16c2fce13ac1284ff326cc86 (patch)
treee8f8307be0b6cba56026e10bc5443ddd222bb519
parente97ab633de837b0f695d29eea779f9267f05cec6 (diff)
Use non-deprecated method for accessing the MODALIAS key in the rules file
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/udev_update/BOOK@7394 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter01/changelog.xml5
-rw-r--r--chapter06/udev.xml6
2 files changed, 8 insertions, 3 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 8990a8c40..19310acb1 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -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 &quot;$&quot; from being
+ expanded by the shell.</para>
+ </listitem>
+ <listitem>
<para>[matthew] - Add patches 009 and 010 from Bash upstream.</para>
</listitem>
<listitem>
diff --git a/chapter06/udev.xml b/chapter06/udev.xml
index d32cfe2a5..26650e38c 100644
--- a/chapter06/udev.xml
+++ b/chapter06/udev.xml
@@ -103,10 +103,10 @@ install</userinput></screen>
load kernel modules.</para>
<screen><userinput>sed -i 147,150d /etc/udev/rules.d/25-lfs.rules
-cat &gt;&gt; /etc/udev/rules.d/25-lfs.rules &lt;&lt; EOF
+cat &gt;&gt; /etc/udev/rules.d/25-lfs.rules &lt;&lt; "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>