- Timestamp:
- 03/07/2006 08:25:40 PM (19 years ago)
- Children:
- 2536b38
- Parents:
- 98c3af0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/udev.xml
r98c3af0 r37153e0 100 100 <screen><userinput>cp -v ../&udev-config-file; /etc/udev/rules.d/25-lfs.rules</userinput></screen> 101 101 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 >> /etc/udev/rules.d/25-lfs.rules << "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 >> /etc/udev/rules.d/10-wait_for_sysfs.rules << "EOF" 106 ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus" 107 ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address" 112 108 EOF</userinput></screen> 113 109
Note:
See TracChangeset
for help on using the changeset viewer.