diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2006-02-21 21:20:52 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2006-02-21 21:20:52 +0000 |
commit | fb6fcc5ec2c3a41a16c2fce13ac1284ff326cc86 (patch) | |
tree | e8f8307be0b6cba56026e10bc5443ddd222bb519 | |
parent | e97ab633de837b0f695d29eea779f9267f05cec6 (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.xml | 5 | ||||
-rw-r--r-- | chapter06/udev.xml | 6 |
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 "$" 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 >> /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> |