projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
system: attempt to parse /proc/device-tree/model
[project/procd.git]
/
system.c
diff --git
a/system.c
b/system.c
index
1e88b5d
..
cdb5434
100644
(file)
--- a/
system.c
+++ b/
system.c
@@
-78,7
+78,8
@@
static int system_board(struct ubus_context *ctx, struct ubus_object *obj,
fclose(f);
}
- if ((f = fopen("/tmp/sysinfo/model", "r")) != NULL)
+ if ((f = fopen("/tmp/sysinfo/model", "r")) != NULL ||
+ (f = fopen("/proc/device-tree/model", "r")) != NULL)
{
if (fgets(line, sizeof(line), f))
{