Fixed #154
This commit is contained in:
parent
209effd04d
commit
d887b4742d
1 changed files with 2 additions and 2 deletions
|
@ -580,7 +580,7 @@ void get_info()
|
||||||
#endif
|
#endif
|
||||||
FILE *host_model_info = fopen("/sys/devices/virtual/dmi/id/board_name", "r");
|
FILE *host_model_info = fopen("/sys/devices/virtual/dmi/id/board_name", "r");
|
||||||
if (!host_model_info)
|
if (!host_model_info)
|
||||||
host_model_info = fopen("/sys/devices/virtual/dmi/id/product_name", "r");
|
if ((host_model_info = fopen("/sys/devices/virtual/dmi/id/product_name", "r")) != NULL)
|
||||||
fclose(host_model_info);
|
fclose(host_model_info);
|
||||||
#ifdef __FREEBSD__
|
#ifdef __FREEBSD__
|
||||||
host_model_info = popen("sysctl -a hw.hv_vendor", "r");
|
host_model_info = popen("sysctl -a hw.hv_vendor", "r");
|
||||||
|
|
Loading…
Reference in a new issue