Add type "SD" to allow eStoraged on sd devices
This change will allow eMMC to work with SD devices.
Change-Id: I686ef42d946f4c97f8fc04bf1280277b12f69333
Signed-off-by: John Edward Broadbent <jebr@google.com>
diff --git a/src/util.cpp b/src/util.cpp
index 9952bca..b971646 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -193,7 +193,7 @@
std::ifstream typeFile(curPath, std::ios_base::in);
std::string devType;
typeFile >> devType;
- if (devType.compare("MMC") == 0)
+ if (devType.compare("MMC") == 0 || devType.compare("SD") == 0)
{
/* Found it. Get the sysfs directory and device file. */
std::filesystem::path deviceName(dirEntry.path().filename());