]> git.ipfire.org Git - thirdparty/systemd.git/blob - tools/hwdb-update.sh
firstboot: Update help string with --root-shell options
[thirdparty/systemd.git] / tools / hwdb-update.sh
1 #!/bin/sh
2 set -eu
3
4 cd "$1"
5
6 unset permissive
7 if [ "${2:-}" = "-p" ]; then
8 permissive=1
9 shift
10 else
11 permissive=0
12 fi
13
14 if [ "${2:-}" != "-n" ]; then (
15 [ -z "$permissive" ] || set +e
16 set -x
17
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'
25 ) fi
26
27 set -x
28 ./acpi-update.py >20-acpi-vendor.hwdb.base
29 patch -p0 -o- 20-acpi-vendor.hwdb.base <20-acpi-vendor.hwdb.patch >20-acpi-vendor.hwdb
30 ! diff -u 20-acpi-vendor.hwdb.base 20-acpi-vendor.hwdb >20-acpi-vendor.hwdb.patch
31
32 ./ids_parser.py