Changeset b471f6a for general/sysutils


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:
cc338e5
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

Location:
general/sysutils
Files:
2 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;
  • general/sysutils/usbutils.xml

    r39100371 rb471f6a  
    153153<screen role="root" revision="sysv"><userinput>wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
    154154
    155     <para revision="sysv">
    156       You may wish to add an entry to
    157       <systemitem class="username">root</systemitem>'s (or any other user who has
    158       write privilege to <filename class="directory">/usr/share/hwdata</filename>)
    159       crontab to automatically update the <filename>usb.ids</filename> file
    160       periodically.
    161     </para>
    162 
    163     <para revision="systemd">
     155    <para>
    164156      You should update the <filename>/usr/share/hwdata/usb.ids</filename> file
    165       periodically. Execute the following commands, as the
    166       <systemitem class="username">root</systemitem> user, to create a systemd
    167       timer to update it weekly on Sundays at 3:00 A.M. (local time):
    168     </para>
     157      periodically. <phrase revision="sysv">If you've installed
     158      <xref linkend="fcron"/> and completed the section on periodic jobs,
     159      execute</phrase><phrase revision="systemd">Execute</phrase> the following       commands, as the  <systemitem class="username">root</systemitem> user,
     160      to create a <phrase revision="sysv">weekly cron job:</phrase>
     161      <phrase revision="systemd">systemd timer to update it weekly on Sundays
     162      at 2:30 A.M. (local time):</phrase>
     163    </para>
     164
     165<screen role="root" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-
     166usbids.sh &lt;&lt; "EOF" &amp;&amp;
     167<literal>#!/bin/bash
     168/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
     169EOF
     170chmod 754 /etc/cron.weekly/update-usbids</userinput></screen>
    169171
    170172<screen role="root" revision="systemd"><userinput>cat &gt; /lib/systemd/system/update-usbids.service &lt;&lt; "EOF" &amp;&amp;
Note: See TracChangeset for help on using the changeset viewer.