Skip to content
Snippets Groups Projects
Verified Commit 2738097e authored by Josef Schlehofer's avatar Josef Schlehofer
Browse files

Merge branch 'hotfix/fix-updater-drivers-pci-path' into develop

parents 4809ad91 e9888b26
Branches
Tags
1 merge request!824Turris OS 5.3 (HBK)
......@@ -8,8 +8,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=updater-drivers
PKG_VERSION:=0.1.0
PKG_RELEASE:=2
PKG_VERSION:=0.1.1
PKG_RELEASE:=1
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
......
......@@ -89,8 +89,8 @@ turris_list("drivers/usb.lua")
-- PCI
devices = {}
for name, _ in pairs(ls("/sys/bus/pci/devices")) do
local vendor = cat_file("/sys/bus/usb/devices/" .. name .. "/vendor")
local device = cat_file("/sys/bus/usb/devices/" .. name .. "/device")
local vendor = cat_file("/sys/bus/pci/devices/" .. name .. "/vendor")
local device = cat_file("/sys/bus/pci/devices/" .. name .. "/device")
if vendor and device then
table.insert(devices, {
vendor = tonumber(vendor),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment