2017-12-24 06:53:20 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
2017-04-15 04:40:59 +00:00
|
|
|
|
|
|
|
cd "$1"
|
2017-04-18 21:28:14 +00:00
|
|
|
|
2018-03-02 11:06:32 +00:00
|
|
|
unset permissive
|
2018-06-12 13:57:51 +00:00
|
|
|
if [ "${2:-}" = "-p" ]; then
|
2018-03-02 11:06:32 +00:00
|
|
|
permissive=1
|
|
|
|
shift
|
2018-06-12 13:57:51 +00:00
|
|
|
else
|
|
|
|
permissive=0
|
2018-03-02 11:06:32 +00:00
|
|
|
fi
|
|
|
|
|
2018-03-02 10:50:43 +00:00
|
|
|
if [ "${2:-}" != "-n" ]; then (
|
2018-03-02 11:06:32 +00:00
|
|
|
[ -z "$permissive" ] || set +e
|
2018-03-02 10:50:43 +00:00
|
|
|
set -x
|
2018-03-02 11:06:32 +00:00
|
|
|
|
2017-10-02 11:19:21 +00:00
|
|
|
curl -L -o usb.ids 'http://www.linux-usb.org/usb.ids'
|
|
|
|
curl -L -o pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids'
|
|
|
|
curl -L -o ma-large.txt 'http://standards-oui.ieee.org/oui/oui.txt'
|
|
|
|
curl -L -o ma-medium.txt 'http://standards-oui.ieee.org/oui28/mam.txt'
|
|
|
|
curl -L -o ma-small.txt 'http://standards-oui.ieee.org/oui36/oui36.txt'
|
Update UEFI URLs (#12260)
* Use more secure https://www.uefi.org
http://www.uefi.org directs to https://uefi.org/, so this saves one
redirect.
$ curl -I http://www.uefi.org
HTTP/1.1 302 Found
Server: nginx
Date: Tue, 09 Apr 2019 14:54:46 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
X-Content-Type-Options: nosniff
Location: https://uefi.org/
Cache-Control: max-age=1209600
Expires: Tue, 23 Apr 2019 14:54:46 GMT
Run the command below to update all occurrences.
git grep -l http://www.uefi.org | xargs sed -i 's,http://www.uefi.org,https://www.uefi.org,'
* Use https://uefi.org to save redirect
Save one redirect by using the target location.
$ curl -I https://www.uefi.org
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Tue, 09 Apr 2019 14:55:42 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
X-Content-Type-Options: nosniff
Location: https://uefi.org/
Cache-Control: max-age=1209600
Expires: Tue, 23 Apr 2019 14:55:42 GMT
Run the command below to update all occurrences.
git grep -l https://www.uefi.org | xargs sed -i 's,https://www.uefi.org,https://uefi.org,'
2019-04-09 16:37:46 +00:00
|
|
|
curl -L -o pnp_id_registry.html 'https://uefi.org/uefi-pnp-export'
|
|
|
|
curl -L -o acpi_id_registry.html 'https://uefi.org/uefi-acpi-export'
|
2018-03-02 10:50:43 +00:00
|
|
|
) fi
|
2017-12-14 13:36:03 +00:00
|
|
|
|
2018-03-02 10:50:43 +00:00
|
|
|
set -x
|
2017-10-02 11:19:21 +00:00
|
|
|
./acpi-update.py >20-acpi-vendor.hwdb.base
|
2017-04-15 04:40:59 +00:00
|
|
|
patch -p0 -o- 20-acpi-vendor.hwdb.base <20-acpi-vendor.hwdb.patch >20-acpi-vendor.hwdb
|
2017-10-02 11:19:21 +00:00
|
|
|
! diff -u 20-acpi-vendor.hwdb.base 20-acpi-vendor.hwdb >20-acpi-vendor.hwdb.patch
|
2017-12-14 13:36:03 +00:00
|
|
|
|
|
|
|
./ids_parser.py
|