discover.conf(5)

πŸ’– discover.conf β€” like, the whole vibe of the config file for discover(1) πŸ’–

okay bestie, so this is the discover.conf page, and yeah it lives in the File Formats Manual section of the manual (section 5, for the record πŸŽ€). it's the lil guide to how you configure discover(1) and honestly it's giving main character energy. let's get into it πŸ¦‹


✨ NAME ✨

discover.conf β€” configuration file format for discover(1)


🌸 Description 🌸

so Discover goes looking for configuration files in a configuration directory, and that directory holds a bunch of files, okay? and those files are the ones that decide:

  • which system buses get scanned by default 🫢
  • which ones should never be scanned, like absolutely not, not on our watch πŸ’€
  • and the URLs for hardware data files that go <em>beyond the local copy</em> that ships with the software ✨

the file format is XML β€” yes bestie, XML, we love a structured moment. the DTD is provided with the Discover software, and you can use it for informational or validation purposes. no cap, it's right there for you πŸ’…


πŸŽ€ Examples πŸŽ€

establishing default buses to scan πŸ‘‘

<?xml version="1.0"?>

<!DOCTYPE conffile SYSTEM "conffile.dtd">

<conffile>
<busscan scan="default">
<bus name="ata"/>
<bus name="pci"/>
<bus name="pcmcia"/>
<bus name="scsi"/>
<bus name="usb"/>
</busscan>
</conffile>

a more complex example πŸ¦‹

<?xml version="1.0"?>

<!DOCTYPE conffile SYSTEM "conffile.dtd">

<conffile>
<busscan scan="default">
<bus name="ata"/>
<bus name="pci"/>
<bus name="pcmcia"/>
<bus name="usb"/>
</busscan>
<!-- My ancient SCSI card locks up when probed -->
<busscan scan="never">
<bus name="scsi"/>
</busscan>
<data-sources>
<data-source url="http://www.example.com/discover/xfree86.xml"
label="Updated XFree86 hardware information">
</data-sources>
</conffile>

like, see how scsi is in the default list in the first example and then gets banished to scan="never" in the second one? because that ancient SCSI card locks up when probed 😭 the comment in the XML says it and everything. iconic behavior honestly, protecting your own machine from itself 🫢


πŸ‘‘ Authors πŸ‘‘

Josh Bressers, John R. Daily, and G. Branden Robinson developed the current implementation of Discover for Progeny Linux Systems. absolute legends, we stan 🌟

the Linux implementation of the system-dependent interfaces is derived from detect, by MandrakeSoft SA. giving credit where credit is due, periodt πŸ’œ


🌈 See Also 🌈


ok that's the whole page bestie, go forth and configure responsibly πŸ’…βœ¨

discover.conf(5) β€” filed under the File Formats Manual, dated discover.conf(5) at the bottom of the page πŸŽ€ mwah, thanks for reading, ily, bye πŸ«ΆπŸ’–