chiark / gitweb /
add ID_BUS to *_id programs
authorHannes Reinecke <hare@suse.de>
Tue, 19 Jul 2005 15:18:19 +0000 (11:18 -0400)
committerKay Sievers <kay.sievers@suse.de>
Tue, 19 Jul 2005 15:18:19 +0000 (11:18 -0400)
extras/ata_id/ata_id.c
extras/dasd_id/dasd_id.c
extras/scsi_id/scsi_id.c
extras/usb_id/usb_id.c

index 9df0fdb..1e99b9d 100644 (file)
@@ -169,6 +169,7 @@ int main(int argc, char *argv[])
                printf("ID_MODEL=%s\n", model);
                printf("ID_SERIAL=%s\n", serial);
                printf("ID_REVISION=%s\n", revision);
+               printf("ID_BUS=ata\n");
        } else {
                if (serial[0] != '\0')
                        printf("%s_%s\n", model, serial);
index 5c2143f..e2df65d 100644 (file)
@@ -262,6 +262,7 @@ int main(int argc, char *argv[])
        if (export) {
                printf("ID_TYPE=disk\n");
                printf("ID_SERIAL=%s\n",serial);
+               printf("ID_BUS=ccw\n");
        } else
                printf("%s\n", serial);
 
index cbefb44..1b4234a 100644 (file)
@@ -827,6 +827,7 @@ static int scsi_id(const char *target_path, char *maj_min_dev)
                        set_str(serial_str, serial, sizeof(serial_str));
                        printf("ID_SERIAL=%s\n", serial_str);
                        printf("ID_TYPE=%s\n", type_str);
+                       printf("ID_BUS=scsi\n");
                } else {
                        if (reformat_serial)
                                format_serial(serial);
index ab116e9..1eb45b9 100644 (file)
@@ -485,6 +485,7 @@ int main(int argc, char **argv)
                                       vendor_str, model_str, serial_str);
                        }
                        printf("ID_TYPE=%s\n", type_str);
+                       printf("ID_BUS=usb\n");
                } else {
                        if (serial_str[0] == '\0') {
                                printf("%s_%s\n",