Changeset 37153e0 for chapter06


Ignore:
Timestamp:
03/07/2006 08:25:40 PM (19 years ago)
Author:
Matthew Burgess <matthew@…>
Children:
2536b38
Parents:
98c3af0
Message:

Udev rules file update and improve the wording for module loading and persistent device naming

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/udev_update/BOOK@7413 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/udev.xml

    r98c3af0 r37153e0  
    100100<screen><userinput>cp -v ../&udev-config-file; /etc/udev/rules.d/25-lfs.rules</userinput></screen>
    101101
    102     <para>Alter Udev's configuration file so that Udev can automatically
    103     load kernel modules.</para>
    104 
    105 <screen><userinput>sed -i 147,150d /etc/udev/rules.d/25-lfs.rules
    106 cat &gt;&gt; /etc/udev/rules.d/25-lfs.rules &lt;&lt; "EOF"
    107 # Rules to allow hotplugging of devices with modular drivers
    108 ACTION=="add", SUBSYSTEM=="?*", ENV{MODALIAS}=="?*", \
    109   RUN+="/sbin/modprobe $env{MODALIAS}"
    110 ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[07]", \
    111   RUN+="/sbin/modprobe sd_mod"
     102    <para>Create some rules that work around broken sysfs attribute creation
     103    timing in linux-2.6.15:</para>
     104
     105<screen><userinput>cat &gt;&gt; /etc/udev/rules.d/10-wait_for_sysfs.rules &lt;&lt; "EOF"
     106ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
     107ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
    112108EOF</userinput></screen>
    113109
Note: See TracChangeset for help on using the changeset viewer.