mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 23:21:08 +03:00
add ID_BUS to *_id programs
This commit is contained in:
parent
bf375e3af6
commit
46f01c6dc4
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user