diff options
author | Daniel Palmer <danieruru@gmail.com> | 2014-06-25 23:34:08 +0900 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2014-06-25 10:59:31 -0400 |
commit | 0e7fdf27654a3132c0505d37d5d5b3f4622db170 (patch) | |
tree | f8828eacfbf571c117641c89cedda6d31c2428f0 | |
parent | d93352aabbded3f9d67a91e057bfad64e8fc8a11 (diff) |
Use a node in sysfs that only exists when the device tree is loaded.
-rw-r--r-- | bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |