Changed to work with dietpi on a NanoPI NEO
This commit is contained in:
parent
3e6817c3f7
commit
ff6cf61864
|
@ -157,8 +157,8 @@ static int getAllwinnerBoardID(char* boardId, int boardIdMaxLen )
|
|||
FILE *f;
|
||||
int ret = -1;
|
||||
|
||||
if (!(f = fopen("/sys/class/sunxi_info/sys_info", "r"))) {
|
||||
LOGE("open /sys/class/sunxi_info/sys_info failed.");
|
||||
if (!(f = fopen("/etc/sys_info", "r"))) {
|
||||
LOGE("open /etc/sys_info failed.");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue