]> err.no Git - systemd/commitdiff
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 9df0fdb10763107a78d38a742fc1ad6aeec600ce..1e99b9df9c6129e8e81490af2d10dd7038bc1795 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 5c2143f45d5c3a98c44822051e48aca6137e01a3..e2df65d6ec6ccfa2da9e5ad846b5f0f294186a98 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 cbefb445dffe1cbbf3992b9be814aeba522e9136..1b4234a40ea1782c8650b61f41465f6474d25d1f 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 ab116e9d030cbf435451a39a524e27304ac7b6a9..1eb45b911412ca28b0f27a3a7f132bc01dae2d55 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",