author | alwin <alwin> | 2005-03-07 14:32:58 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-07 14:32:58 (UTC) |
commit | 9ac0dc3c7b4e56f38c3cefce2e5699078aa3a357 (patch) (unidiff) | |
tree | 9b8e96c6971ca8750a274f2542eed1272f4ec683 | |
parent | c26df8eafe66bded4a4af4f95830fd2187bfa2ca (diff) | |
download | opie-9ac0dc3c7b4e56f38c3cefce2e5699078aa3a357.zip opie-9ac0dc3c7b4e56f38c3cefce2e5699078aa3a357.tar.gz opie-9ac0dc3c7b4e56f38c3cefce2e5699078aa3a357.tar.bz2 |
yes - scsi storage may be removeable devices!
-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 | |||
@@ -201,15 +201,16 @@ void StorageInfo::update() | |||
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" ) |