mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
hdd_menu.cpp: improve test.
This is valid for all mmcblk devices
This commit is contained in:
@@ -230,7 +230,7 @@ void CHDDMenuHandler::getBlkIds()
|
||||
std::string CHDDMenuHandler::getDefaultPart(std::string dev)
|
||||
{
|
||||
std::string part = "1";
|
||||
if (dev == "mmcblk0")
|
||||
if (strncmp(dev.c_str(), "mmcblk", 6) == 0)
|
||||
part = "p1";
|
||||
return part;
|
||||
}
|
||||
|
Reference in New Issue
Block a user