aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/udev.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/udev.xml')
-rw-r--r--chapter06/udev.xml6
1 files changed, 3 insertions, 3 deletions
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>