]> err.no Git - systemd/commitdiff
path_id: recognize ACPI parent devices
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 10 Jul 2011 03:32:15 +0000 (05:32 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 10 Jul 2011 03:32:15 +0000 (05:32 +0200)
We need to tag the power input button for multi-seat.

extras/path_id/path_id.c

index 98f0e400890b3edaae46c8c1614f319e56fa4fbc..928aa6737fb0cf8e708a67f00f9dcf76ea08629d 100644 (file)
@@ -496,6 +496,9 @@ int main(int argc, char **argv)
                } else if (strcmp(subsys, "platform") == 0) {
                        path_prepend(&path, "platform-%s", udev_device_get_sysname(parent));
                        parent = skip_subsystem(parent, "platform");
+               } else if (strcmp(subsys, "acpi") == 0) {
+                       path_prepend(&path, "acpi-%s", udev_device_get_sysname(parent));
+                       parent = skip_subsystem(parent, "acpi");
                } else if (strcmp(subsys, "xen") == 0) {
                        path_prepend(&path, "xen-%s", udev_device_get_sysname(parent));
                        parent = skip_subsystem(parent, "xen");