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.
This commit is contained in:
Xi Ruoyao 2023-11-14 02:35:51 +08:00
parent 798e18b09f
commit 4bc51b9067
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -139,11 +139,11 @@ install -vm644 src/libudev/*.pc /usr/lib/pkgconfig/
install -vm644 src/udev/*.pc /usr/share/pkgconfig/ install -vm644 src/udev/*.pc /usr/share/pkgconfig/
install -vm644 ../src/udev/udev.conf /etc/udev/ install -vm644 ../src/udev/udev.conf /etc/udev/
install -vm644 rules.d/* ../rules.d/README /usr/lib/udev/rules.d/ install -vm644 rules.d/* ../rules.d/README /usr/lib/udev/rules.d/
install -vm644 $(echo ../rules.d/*.rules | \ install -vm644 $(find ../rules.d/*.rules \
sed 's/70-power-switch.rules//') /usr/lib/udev/rules.d/ -not -name '*power-switch*') /usr/lib/udev/rules.d/
install -vm644 hwdb.d/* ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/ install -vm644 hwdb.d/* ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/
install -vm755 $(find src/udev -type f \ install -vm755 $(find src/udev \
-not -name '*.*') /usr/lib/udev</userinput></screen> -type f -not -name '*.*') /usr/lib/udev</userinput></screen>
<para>Install some custom rules and support files useful in an LFS <para>Install some custom rules and support files useful in an LFS
environment:</para> environment:</para>