Changeset 1c6da08
- Timestamp:
- 03/18/2024 09:59:28 AM (2 months ago)
- Branches:
- lazarus, trunk
- Children:
- 9e3d8219
- Parents:
- 7ff7885c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/pciutils.xml
r7ff7885c r1c6da08 67 67 </listitem> 68 68 </itemizedlist> 69 <!-- Needed to update the pci-ids. systemd has a unit and timer for this,70 but for anyone who updates this file on either platform, it's needed71 to download the pci.ids file. -->72 69 73 70 <bridgehead renderas="sect3">pciutils Dependencies</bridgehead> … … 75 72 <bridgehead renderas="sect4">Recommended</bridgehead> 76 73 <para role="recommended"> 77 <xref linkend="curl"/>, 78 <xref linkend="wget"/>, or 79 <xref linkend="lynx"/> 80 (for the update-pciids script to function correctly). 74 <xref role="runtime" linkend="hwdata"/> (runtime) 81 75 </para> 82 76 … … 85 79 <sect2 role="installation"> 86 80 <title>Installation of PCI Utils</title> 81 82 <para> 83 Prevent the installation of the <filename>pci.ids</filename> file 84 to avoid a conflict with the <xref linkend='hwdata'/> package: 85 </para> 86 87 <screen><userinput>sed -r '/INSTALL.*(PCI_IDS|update-pciids)/d' \ 88 -i Makefile</userinput></screen> 87 89 88 90 <para> … … 110 112 chmod -v 755 /usr/lib/libpci.so</userinput></screen> 111 113 114 <para> 115 Now install the <xref linkend='hwdata'/> package for the 116 <filename>pci.ids</filename> file. 117 </para> 118 112 119 </sect2> 113 120 … … 124 131 the <filename>pci.ids</filename> file. 125 132 </para> 126 127 </sect2>128 129 <sect2 role="configuration">130 <title>Configuring PCI Utils</title>131 132 <para>133 The <filename>pci.ids</filename> data file is constantly being134 updated. To get a current version of this file, run135 <command>update-pciids</command> as the <systemitem136 class="username">root</systemitem> user. This program requires the137 <xref linkend="which"/> script or program to find <xref linkend="curl"/>,138 <xref linkend="lynx"/>, or <xref linkend="wget"/> which are used to139 download the most current file, and then replace the existing file in140 <filename class="directory">/usr/share/hwdata</filename>.141 </para>142 143 <para>144 You should update the <filename>/usr/share/hwdata/pci.ids</filename> file145 periodically. <phrase revision="sysv">If you've installed146 <xref linkend="fcron"/> and completed the section on periodic jobs,147 execute</phrase><phrase revision="systemd">Execute</phrase> the following148 commands, as the <systemitem class="username">root</systemitem> user,149 to create a <phrase revision="sysv">weekly cron job:</phrase>150 <phrase revision="systemd">systemd timer to update it weekly on Sundays151 at 2:30 A.M. (local time):</phrase>152 </para>153 154 <screen role="nodump" revision="sysv"><userinput>cat > /etc/cron.weekly/update-pciids.sh << "EOF" &&155 <literal>#!/bin/bash156 /usr/sbin/update-pciids</literal>157 EOF158 chmod 754 /etc/cron.weekly/update-pciids.sh</userinput></screen>159 160 <screen role="root" revision="systemd"><userinput>cat > /usr/lib/systemd/system/update-pciids.service << "EOF" &&161 <literal>[Unit]162 Description=Update pci.ids file163 Documentation=man:update-pciids(8)164 DefaultDependencies=no165 After=local-fs.target network-online.target166 Before=shutdown.target167 168 [Service]169 Type=oneshot170 RemainAfterExit=yes171 ExecStart=/usr/sbin/update-pciids</literal>172 EOF173 cat > /usr/lib/systemd/system/update-pciids.timer << "EOF" &&174 <literal>[Unit]175 Description=Update pci.ids file weekly176 177 [Timer]178 OnCalendar=Sun 02:30:00179 Persistent=true180 181 [Install]182 WantedBy=timers.target</literal>183 EOF184 systemctl enable update-pciids.timer</userinput></screen>185 186 133 187 134 </sect2> … … 197 144 <seglistitem> 198 145 <seg> 199 lspci , setpci, and update-pciids146 lspci and setpci 200 147 </seg> 201 148 <seg> … … 238 185 </varlistentry> 239 186 240 <varlistentry id="update-pciids">241 <term><command>update-pciids</command></term>242 <listitem>243 <para>244 fetches the current version of the PCI ID list. <!-- Requires245 <xref linkend="curl"/>, <xref linkend="lynx"/> or246 <xref linkend="wget"/>.247 -->248 </para>249 <indexterm zone="pciutils update-pciids">250 <primary sortas="b-update-pciids">update-pciids</primary>251 </indexterm>252 </listitem>253 </varlistentry>254 255 187 <varlistentry id="libpci"> 256 188 <term><filename class="libraryfile">libpci.so</filename></term>
Note:
See TracChangeset
for help on using the changeset viewer.