summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Palmer <danieruru@gmail.com>2014-06-25 23:34:08 +0900
committerDaniel Palmer <danieruru@gmail.com>2014-06-25 23:34:08 +0900
commit51652e84de406413faf7f4f43d0e5bb22b64a054 (patch)
tree221ee29d27937d0445a3b7e55a92b5cbe44fa703
parent1b9e4b2d49283eee706bc58e42c4ac30cff4017f (diff)
Use a node in sysfs that only exists when the device tree is loaded.pinmuxindt
-rw-r--r--bus.c2
1 files changed, 1 insertions, 1 deletions
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;
}