X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=system.c;h=cdb54343885ee53c2521bea1882b6e4e72b90e85;hp=1e88b5dfed84c381cabb2756523ea9e3008a0d24;hb=c48b19bbe127551ffb2b6d02b33ef78865341cfc;hpb=510c2ddc147649811d39c6ba3758b768cfab7b6d diff --git a/system.c b/system.c index 1e88b5d..cdb5434 100644 --- 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)) {