author | alwin <alwin> | 2005-03-01 23:42:48 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-01 23:42:48 (UTC) |
commit | 374cb9f45664c307ab7d0ed88fea5e76631518d9 (patch) (unidiff) | |
tree | 97d63c360117877ff26aca8fc6c61ebc14c528b5 | |
parent | bb6be9cbe75892a7cc1d7c234f1c48023f9c9592 (diff) | |
download | opie-374cb9f45664c307ab7d0ed88fea5e76631518d9.zip opie-374cb9f45664c307ab7d0ed88fea5e76631518d9.tar.gz opie-374cb9f45664c307ab7d0ed88fea5e76631518d9.tar.bz2 |
mmc/sd cards may mounted via /dev/mmcblk* within linux 2.6
-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 | |||
@@ -71,17 +71,18 @@ QString OStorageInfo::sdPath()const | |||
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 | ||