diff options
Diffstat (limited to 'src/Device/Device.cpp')
-rw-r--r-- | src/Device/Device.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Device/Device.cpp b/src/Device/Device.cpp index ee8ba83..b4ec3c5 100644 --- a/src/Device/Device.cpp +++ b/src/Device/Device.cpp @@ -32,7 +32,7 @@ std::map<std::string, bool> Device::capabilityList = {{"adc", false},{"battery", {"cell", false},{"cellWwan", false},{"din", false},{"dout", false},{"externalSerialPort", false}, {"gpio", false},{"gps", false},{"lora", false},{"loraNetworkServer", false}, {"nodeRed", false},{"rs232", false},{"rs422", false},{"rs485", false},{"serial", false}, - {"supercap", false},{"wifi", false}}; + {"supercap", false},{"wifi", false},{"docker", false}}; std::map<std::string, std::string> Device::ethSwitchList; @@ -242,6 +242,9 @@ void Device::mapFileToCapability() { if (fileType("/dev/ext_serial") == S_IFCHR) { /* ext_serial is a character device */ capabilityList["externalSerialPort"] = true; } + if (fileType("/usr/bin/docker") == S_IFREG) { /* Docker is a regular file */ + capabilityList["docker"] = true; + } } void Device::mapMacAddress2() { |