]> git.ipfire.org Git - thirdparty/systemd.git/blame - tools/meson-hwdb-update.sh
Merge pull request #12511 from ssahani/high-avilability-12050
[thirdparty/systemd.git] / tools / meson-hwdb-update.sh
CommitLineData
7629744a 1#!/bin/sh
2set -eu
abba22c5
ZJS
3
4cd "$1"
734005fe 5
299597f8 6unset permissive
d5ef342d 7if [ "${2:-}" = "-p" ]; then
cc5549ca
ZJS
8 permissive=1
9 shift
d5ef342d 10else
cc5549ca 11 permissive=0
299597f8
ZJS
12fi
13
4af1aea4 14if [ "${2:-}" != "-n" ]; then (
cc5549ca
ZJS
15 [ -z "$permissive" ] || set +e
16 set -x
299597f8 17
cc5549ca
ZJS
18 curl -L -o usb.ids 'http://www.linux-usb.org/usb.ids'
19 curl -L -o pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids'
20 curl -L -o ma-large.txt 'http://standards-oui.ieee.org/oui/oui.txt'
21 curl -L -o ma-medium.txt 'http://standards-oui.ieee.org/oui28/mam.txt'
22 curl -L -o ma-small.txt 'http://standards-oui.ieee.org/oui36/oui36.txt'
23 curl -L -o pnp_id_registry.html 'https://uefi.org/uefi-pnp-export'
24 curl -L -o acpi_id_registry.html 'https://uefi.org/uefi-acpi-export'
4af1aea4 25) fi
c6801f50 26
4af1aea4 27set -x
91dab98f 28./acpi-update.py >20-acpi-vendor.hwdb.base
abba22c5 29patch -p0 -o- 20-acpi-vendor.hwdb.base <20-acpi-vendor.hwdb.patch >20-acpi-vendor.hwdb
689f4898 30! diff -u 20-acpi-vendor.hwdb.base 20-acpi-vendor.hwdb >20-acpi-vendor.hwdb.patch
c6801f50
ZJS
31
32./ids_parser.py