1
1
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:
Hannes Reinecke 2005-07-19 11:18:19 -04:00 committed by Kay Sievers
parent bf375e3af6
commit 46f01c6dc4
4 changed files with 4 additions and 0 deletions

View 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);

View 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);

View 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);

View 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",