diff options
author | mykola.salomatin <mykola.salomatin@globallogic.com> | 2020-12-15 20:20:00 +0200 |
---|---|---|
committer | mykola.salomatin <mykola.salomatin@globallogic.com> | 2020-12-15 20:20:00 +0200 |
commit | bd4fda9bf23a337c2576101e50378c94b9ed296b (patch) | |
tree | d652ff2b719f0d964e70a5824446839eb48ef565 /src | |
parent | 017da704da12e73f2ef0a19f57bd740318f9e053 (diff) | |
download | mts-io-sysfs-bd4fda9bf23a337c2576101e50378c94b9ed296b.tar.gz mts-io-sysfs-bd4fda9bf23a337c2576101e50378c94b9ed296b.tar.bz2 mts-io-sysfs-bd4fda9bf23a337c2576101e50378c94b9ed296b.zip |
[MTX-3768] Conduit 300: New Capability - Docker support
Diffstat (limited to 'src')
-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() { |