tools: set user agent string when fetching acpi/pnp data

uefi.org now refuses connections if a user agent is not set, failing
the "update-hwdb" command. Set one so that it works again.
This commit is contained in:
Luca Boccassi
2026-08-10 10:30:10 +01:00
parent 6b0ae4b168
commit df9f84c80f
+2 -2
View File
@@ -21,8 +21,8 @@ if [ "${2:-}" != "-n" ]; then (
curl --fail -L -o ma-large.txt 'http://standards-oui.ieee.org/oui/oui.txt'
curl --fail -L -o ma-medium.txt 'http://standards-oui.ieee.org/oui28/mam.txt'
curl --fail -L -o ma-small.txt 'http://standards-oui.ieee.org/oui36/oui36.txt'
curl --fail -L -o pnp_id_registry.csv 'https://uefi.org/uefi-pnp-export'
curl --fail -L -o acpi_id_registry.csv 'https://uefi.org/uefi-acpi-export'
curl -A 'CustomUserAgentString' --fail -L -o pnp_id_registry.csv 'https://uefi.org/uefi-pnp-export'
curl -A 'CustomUserAgentString' --fail -L -o acpi_id_registry.csv 'https://uefi.org/uefi-acpi-export'
) fi
set -x