Merge pull request #949 from mickey-happygolucky/master

Fix device name of mmc on Edit Partition.
This commit is contained in:
Jamie Cameron
2018-08-01 16:56:37 -08:00
committed by GitHub

View File

@@ -106,7 +106,9 @@ print &ui_table_row($text{'edit_location'},
$dinfo->{'device'});
# Device name
$dev = $dinfo->{'prefix'}.$np;
$dev = $dinfo->{'prefix'} =~ /^\/dev\/mmcblk.*/ ?
$dinfo->{'prefix'}.'p'.$np :
$dinfo->{'prefix'}.$np;
print &ui_table_row($text{'edit_device'}, $dev);
# Partition type