-rw-r--r-- | library/storage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/storage.cpp b/library/storage.cpp index 9549ff3..e657573 100644 --- a/library/storage.cpp +++ b/library/storage.cpp | |||
@@ -191,35 +191,36 @@ void StorageInfo::update() | |||
191 | else if ( disk == "/dev/hda1" ) | 191 | else if ( disk == "/dev/hda1" ) |
192 | { | 192 | { |
193 | humanname = tr("Hard Disk"); | 193 | humanname = tr("Hard Disk"); |
194 | } | 194 | } |
195 | else if ( disk.left(9) == "/dev/mmcd" ) | 195 | else if ( disk.left(9) == "/dev/mmcd" ) |
196 | { | 196 | { |
197 | humanname = tr("SD Card"); | 197 | humanname = tr("SD Card"); |
198 | removable = TRUE; | 198 | removable = TRUE; |
199 | } | 199 | } |
200 | else if ( disk.left( 14 ) == "/dev/mmc/part1" || disk.left(11) == "/dev/mmcblk" ) | 200 | else if ( disk.left( 14 ) == "/dev/mmc/part1" || disk.left(11) == "/dev/mmcblk" ) |
201 | { | 201 | { |
202 | humanname = tr("MMC Card"); | 202 | humanname = tr("MMC Card"); |
203 | removable = TRUE; | 203 | removable = TRUE; |
204 | } | 204 | } |
205 | else if ( disk.left(7) == "/dev/hd" ) | 205 | else if ( disk.left(7) == "/dev/hd" ) |
206 | humanname = tr("Hard Disk") + " " + disk; | 206 | humanname = tr("Hard Disk") + " " + disk; |
207 | else if ( disk.left(7) == "/dev/sd" ) | 207 | else if ( disk.left(7) == "/dev/sd" ) { |
208 | humanname = tr("SCSI Hard Disk") + " " + disk; | 208 | humanname = tr("SCSI Hard Disk") + " " + disk; |
209 | else if ( disk.left(14) == "/dev/mtdblock6" ) //openzaurus ramfs | 209 | removable = TRUE; |
210 | } else if ( disk.left(14) == "/dev/mtdblock6" ) //openzaurus ramfs | ||
210 | humanname = tr("Internal Memory"); | 211 | humanname = tr("Internal Memory"); |
211 | else if ( disk == "/dev/mtdblock1" || humanname == "/dev/mtdblock/1" ) | 212 | else if ( disk == "/dev/mtdblock1" || humanname == "/dev/mtdblock/1" ) |
212 | humanname = tr("Internal Storage"); | 213 | humanname = tr("Internal Storage"); |
213 | else if ( disk.left(14) == "/dev/mtdblock/" ) | 214 | else if ( disk.left(14) == "/dev/mtdblock/" ) |
214 | humanname = tr("Internal Storage") + " " + disk; | 215 | humanname = tr("Internal Storage") + " " + disk; |
215 | else if ( disk.left(13) == "/dev/mtdblock" ) | 216 | else if ( disk.left(13) == "/dev/mtdblock" ) |
216 | humanname = tr("Internal Storage") + " " + disk; | 217 | humanname = tr("Internal Storage") + " " + disk; |
217 | else if ( disk.left(9) == "/dev/root" ) | 218 | else if ( disk.left(9) == "/dev/root" ) |
218 | humanname = tr("Internal Storage") + " " + disk; | 219 | humanname = tr("Internal Storage") + " " + disk; |
219 | else if ( disk.left(5) == "tmpfs" ) //ipaqs /mnt/ramfs | 220 | else if ( disk.left(5) == "tmpfs" ) //ipaqs /mnt/ramfs |
220 | humanname = tr("Internal Memory"); | 221 | humanname = tr("Internal Memory"); |
221 | FileSystem *fs = new FileSystem( disk, *fsit, humanname, removable, opts ); | 222 | FileSystem *fs = new FileSystem( disk, *fsit, humanname, removable, opts ); |
222 | mFileSystems.append( fs ); | 223 | mFileSystems.append( fs ); |
223 | } | 224 | } |
224 | emit disksChanged(); | 225 | emit disksChanged(); |
225 | } | 226 | } |