aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/udev.xml
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-11-14 02:35:51 +0800
committerXi Ruoyao <xry111@xry111.site>2023-11-14 02:35:51 +0800
commit4bc51b9067c985017046a1adc9bfab019a8389e0 (patch)
treefd16b40706f6afc589b6186f0a5e0af0f369c0c0 /chapter08/udev.xml
parent798e18b09fd0d0554c8b333e76f43051cc2f5086 (diff)
udev: Fix install command for ../rules.d/*.rules
The sed command has changed ../rules.d/70-power-switch.rules to "../rules.d", causing the install command to fail. Change the command enumerating ../rules.d/*.rules but 70-power-switch.rules to a "find" command. Edit another "find" command so the styles of them are the same.
Diffstat (limited to 'chapter08/udev.xml')
-rw-r--r--chapter08/udev.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/chapter08/udev.xml b/chapter08/udev.xml
index 5eb719e07..46ab88cff 100644
--- a/chapter08/udev.xml
+++ b/chapter08/udev.xml
@@ -139,11 +139,11 @@ install -vm644 src/libudev/*.pc /usr/lib/pkgconfig/
install -vm644 src/udev/*.pc /usr/share/pkgconfig/
install -vm644 ../src/udev/udev.conf /etc/udev/
install -vm644 rules.d/* ../rules.d/README /usr/lib/udev/rules.d/
-install -vm644 $(echo ../rules.d/*.rules | \
- sed 's/70-power-switch.rules//') /usr/lib/udev/rules.d/
+install -vm644 $(find ../rules.d/*.rules \
+ -not -name '*power-switch*') /usr/lib/udev/rules.d/
install -vm644 hwdb.d/* ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/
-install -vm755 $(find src/udev -type f \
- -not -name '*.*') /usr/lib/udev</userinput></screen>
+install -vm755 $(find src/udev \
+ -type f -not -name '*.*') /usr/lib/udev</userinput></screen>
<para>Install some custom rules and support files useful in an LFS
environment:</para>