-rw-r--r-- | libopie2/opiecore/ostorageinfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libopie2/opiecore/ostorageinfo.cpp b/libopie2/opiecore/ostorageinfo.cpp index 8fcf5fc..6c7c138 100644 --- a/libopie2/opiecore/ostorageinfo.cpp +++ b/libopie2/opiecore/ostorageinfo.cpp | |||
@@ -55,33 +55,34 @@ QString OStorageInfo::cfPath()const | |||
55 | return r; | 55 | return r; |
56 | } | 56 | } |
57 | 57 | ||
58 | QString OStorageInfo::sdPath()const | 58 | QString OStorageInfo::sdPath()const |
59 | { | 59 | { |
60 | QString r = ""; | 60 | QString r = ""; |
61 | 61 | ||
62 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) | 62 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) |
63 | { | 63 | { |
64 | if ( (*i)->disk().left( 9 ) == "/dev/mmcd" ) | 64 | if ( (*i)->disk().left( 9 ) == "/dev/mmcd" ) |
65 | { | 65 | { |
66 | r = (*i)->path(); | 66 | r = (*i)->path(); |
67 | break; | 67 | break; |
68 | } | 68 | } |
69 | } | 69 | } |
70 | return r; | 70 | return r; |
71 | } | 71 | } |
72 | 72 | ||
73 | QString OStorageInfo::mmcPath()const | 73 | QString OStorageInfo::mmcPath()const |
74 | { | 74 | { |
75 | QString r = ""; | 75 | QString r = ""; |
76 | 76 | ||
77 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) | 77 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) |
78 | { | 78 | { |
79 | if ( (*i)->disk().left( 14 ) == "/dev/mmc/part1" ) | 79 | if ( (*i)->disk().left( 14 ) == "/dev/mmc/part1"|| |
80 | (*i)->disk().left(11) == "/dev/mmcblk" ) | ||
80 | { | 81 | { |
81 | r = (*i)->path(); | 82 | r = (*i)->path(); |
82 | break; | 83 | break; |
83 | } | 84 | } |
84 | } | 85 | } |
85 | return r; | 86 | return r; |
86 | } | 87 | } |
87 | 88 | ||