]>
Commit | Line | Data |
---|---|---|
7629744a | 1 | #!/bin/sh |
2 | set -eu | |
abba22c5 ZJS |
3 | |
4 | cd "$1" | |
734005fe | 5 | |
299597f8 | 6 | unset permissive |
d5ef342d | 7 | if [ "${2:-}" = "-p" ]; then |
cc5549ca ZJS |
8 | permissive=1 |
9 | shift | |
d5ef342d | 10 | else |
cc5549ca | 11 | permissive=0 |
299597f8 ZJS |
12 | fi |
13 | ||
4af1aea4 | 14 | if [ "${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 | 27 | set -x |
91dab98f | 28 | ./acpi-update.py >20-acpi-vendor.hwdb.base |
abba22c5 | 29 | patch -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 |