Changeset 4bc51b9


Ignore:
Timestamp:
11/13/2023 06:35:51 PM (6 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
e3ae067
Parents:
798e18b
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/udev.xml

    r798e18b r4bc51b9  
    140140install -vm644 ../src/udev/udev.conf               /etc/udev/
    141141install -vm644 rules.d/* ../rules.d/README         /usr/lib/udev/rules.d/
    142 install -vm644 $(echo ../rules.d/*.rules | \
    143                  sed 's/70-power-switch.rules//') /usr/lib/udev/rules.d/
     142install -vm644 $(find ../rules.d/*.rules \
     143                      -not -name '*power-switch*') /usr/lib/udev/rules.d/
    144144install -vm644 hwdb.d/*  ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/
    145 install -vm755 $(find src/udev -type f \
    146                                -not -name '*.*')   /usr/lib/udev</userinput></screen>
     145install -vm755 $(find src/udev \
     146                      -type f -not -name '*.*')    /usr/lib/udev</userinput></screen>
    147147
    148148    <para>Install some custom rules and support files useful in an LFS
Note: See TracChangeset for help on using the changeset viewer.