summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRALOVICH, Kristof <tade60@freemail.hu>2014-08-13 14:34:48 +0200
committerRALOVICH, Kristof <tade60@freemail.hu>2014-08-13 14:34:48 +0200
commit30147369276eef44349c6c867ee04ea200c4a359 (patch)
treec3830d48082d0be1d40dbd66c42ad161be51561f
parentea0f0091f5f3967d7e18b6bda6b55f4f7c9a5830 (diff)
linux: look for usb_serial_simple too
for 0fcf:1009 that's the kernel module
-rw-r--r--src/Serial.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Serial.cpp b/src/Serial.cpp
index 07de0bb..5183aa8 100644
--- a/src/Serial.cpp
+++ b/src/Serial.cpp
@@ -47,6 +47,7 @@ Serial::instantiate(void*)
std::ifstream mods("/proc/modules");
bool cp210x_found=false;
bool usbserial_found=false;
+ bool usbs_simple_found=false;
if(!mods.is_open())
LOG(LOG_WARN) << "Could not open /proc/modules!\n";
else
@@ -58,6 +59,8 @@ Serial::instantiate(void*)
cp210x_found = true;
if(line.find("usbserial ")==0)
usbserial_found = true;
+ if(line.find("usb_serial_simple ")==0)
+ usbs_simple_found = true;
}
mods.close();
if(cp210x_found)
@@ -68,6 +71,10 @@ Serial::instantiate(void*)
LOG(LOG_DBG) << "Found loaded usbserial kernel module.\n";
else
LOG(LOG_DBG) << "usbserial is not listed among loaded kernel modules.\n";
+ if(usbs_simple_found)
+ LOG(LOG_DBG) << "Found loaded usb_serial_simple kernel module.\n";
+ else
+ LOG(LOG_DBG) << "usb_serial_simple is not listed among loaded kernel modules.\n";
}
#endif