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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user