mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
hdd_menu.cpp: improve test.
This is valid for all mmcblk devices
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9969437e35
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-02-16 (Sun, 16 Feb 2020)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -231,7 +231,7 @@ void CHDDMenuHandler::getBlkIds()
|
|||||||
std::string CHDDMenuHandler::getDefaultPart(std::string dev)
|
std::string CHDDMenuHandler::getDefaultPart(std::string dev)
|
||||||
{
|
{
|
||||||
std::string part = "1";
|
std::string part = "1";
|
||||||
if (dev == "mmcblk0")
|
if (strncmp(dev.c_str(), "mmcblk", 6) == 0)
|
||||||
part = "p1";
|
part = "p1";
|
||||||
return part;
|
return part;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user