From 51652e84de406413faf7f4f43d0e5bb22b64a054 Mon Sep 17 00:00:00 2001 From: Daniel Palmer Date: Wed, 25 Jun 2014 23:34:08 +0900 Subject: Use a node in sysfs that only exists when the device tree is loaded. --- bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus.c b/bus.c index 2b6582b..51bd54b 100644 --- a/bus.c +++ b/bus.c @@ -61,7 +61,7 @@ static int devmemfd = -1; static bool util_isbeaglebone() { - int fd = open("/sys/kernel/debug/omap_mux/board/core", O_RDONLY); + int fd = open("/sys/devices/avtech.9/modalias", O_RDONLY); close(fd); return fd > -1; } -- cgit