diff options
author | Kay Sievers <kay@vrfy.org> | 2012-11-23 15:01:43 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-11-23 15:02:46 +0100 |
commit | 01d183ddae6fb3445c4519cf1d90c6575f17292e (patch) | |
tree | f5c410d7b887e9d92ea301477291d0058ea33abc /src/udev/udev-builtin-net_id.c | |
parent | 1cda32b8a29750720872d3525084ac67b88e066f (diff) |
udev: net_id - read ACPI _SUN -- slot user number
Diffstat (limited to 'src/udev/udev-builtin-net_id.c')
-rw-r--r-- | src/udev/udev-builtin-net_id.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c index 72237bf31a..10faec63f6 100644 --- a/src/udev/udev-builtin-net_id.c +++ b/src/udev/udev-builtin-net_id.c @@ -50,8 +50,11 @@ static int dev_pci(struct udev_device *dev, const char *prefix, bool test) { if (!d || !streq("pci", udev_device_get_subsystem(d))) return -ENOENT; - /* find SMBIOS type 41 entries for on-board devices */ - index = udev_device_get_sysattr_value(d, "index"); + /* ACPI _SUN -- slot user number */ + index = udev_device_get_sysattr_value(d, "acpi_index"); + /* SMBIOS type 41 -- Onboard Devices Extended Information */ + if (!index) + index = udev_device_get_sysattr_value(d, "index"); if (index) { unsigned int idx; |