:)
This commit is contained in:
parent
7f7ca8c507
commit
22c4e8cdb0
5 changed files with 47 additions and 19 deletions
|
@ -13,6 +13,13 @@
|
|||
#endif
|
||||
|
||||
#define OS_SIZE 128
|
||||
#define MODEL_BUFF_SIZE 512
|
||||
static const char *MODELS[] = {
|
||||
"/sys/devices/virtual/dmi/id/product_name",
|
||||
"/sys/devices/virtual/dmi/id/product_version",
|
||||
"/sys/firmware/devicetree/base/model"
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
char os_name[OS_SIZE + 1];
|
||||
struct utsname uts;
|
||||
|
@ -37,5 +44,6 @@ int GetArch(const char *title, const FETCH fetch);
|
|||
int GetShell(const char *title, const FETCH fetch);
|
||||
int GetPkg(const char *title, const FETCH fetch);
|
||||
int GetMem(const char *title, const FETCH fetch);
|
||||
int GetModel(const char *title, const FETCH fetch);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue