Ignore:
Timestamp:
12/23/2018 06:56:44 PM (5 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.4, 9.0, 9.1, bdubbs/svn, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
cc338e51
Parents:
39100371
Message:

Add cron jobs for update-pciids and update-usbids.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20862 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/pciutils.xml

    r39100371 rb471f6a  
    148148    </para>
    149149
    150     <para revision="sysv">
    151       You may wish to add an entry to
    152       <systemitem class="username">root</systemitem>'s (or any other user who has
    153       write privilege to <filename class="directory">/usr/share/hwdata</filename>)
    154       crontab to automatically update the <filename>pci.ids</filename> file
    155       periodically.
    156     </para>
    157 
    158     <para revision="systemd">
     150    <para>
    159151      You should update the <filename>/usr/share/hwdata/pci.ids</filename> file
    160       periodically. Execute the following commands, as the
    161       <systemitem class="username">root</systemitem> user, to create a systemd
    162       timer to update it weekly on Sundays at 2:30 A.M. (local time):
    163     </para>
     152      periodically. <phrase revision="sysv">If you've installed
     153      <xref linkend="fcron"/> and completed the section on periodic jobs,
     154      execute</phrase><phrase revision="systemd">Execute</phrase> the following
     155      commands, as the  <systemitem class="username">root</systemitem> user,
     156      to create a <phrase revision="sysv">weekly cron job:</phrase>
     157      <phrase revision="systemd">systemd timer to update it weekly on Sundays
     158      at 2:30 A.M. (local time):</phrase>
     159    </para>
     160
     161<screen role="root" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-pciids.sh &lt;&lt; "EOF" &amp;&amp;
     162<literal>#!/bin/bash
     163/usr/sbin/update-pciids</literal>
     164EOF
     165chmod 754 /etc/cron.weekly/update-pciids</userinput></screen>
    164166
    165167<screen role="root" revision="systemd"><userinput>cat &gt; /lib/systemd/system/update-pciids.service &lt;&lt; "EOF" &amp;&amp;
Note: See TracChangeset for help on using the changeset viewer.