summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--video-ps3eye/module.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp
index 97dd370e..812e523c 100644
--- a/video-ps3eye/module.cpp
+++ b/video-ps3eye/module.cpp
@@ -57,8 +57,18 @@ end:
return cnt;
}
+#ifdef __linux__
+# include <unistd.h>
+#endif
+
bool check_device_exists()
{
+#ifdef __linux__
+ // don't show when system driver exists
+ if (!access("/sys/module/gspca_ov534", R_OK|X_OK))
+ return false;
+#endif
+
static bool ret = device_count() > 0;
return ret;
}