summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sysinfo/storage.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/noncore/settings/sysinfo/storage.cpp b/noncore/settings/sysinfo/storage.cpp
index 5d6cd1b..eb157ef 100644
--- a/noncore/settings/sysinfo/storage.cpp
+++ b/noncore/settings/sysinfo/storage.cpp
@@ -95,7 +95,8 @@ void StorageInfo::updateMounts()
95 QString fs = me->mnt_fsname; 95 QString fs = me->mnt_fsname;
96 if ( fs.left(7)=="/dev/hd" || fs.left(7)=="/dev/sd" 96 if ( fs.left(7)=="/dev/hd" || fs.left(7)=="/dev/sd"
97 || fs.left(8)=="/dev/mtd" || fs.left(9) == "/dev/mmcd" 97 || fs.left(8)=="/dev/mtd" || fs.left(9) == "/dev/mmcd"
98 || fs.left(9) == "/dev/root" || fs.left(5) == "/ramfs" || fs.left(5) == "tmpfs" ) { 98 || fs.left(9) == "/dev/root" || fs.left(5) == "/ramfs"
99 || fs.left(5) == "tmpfs" ) {
99 n++; 100 n++;
100 curdisks.append(fs); 101 curdisks.append(fs);
101 QString d = me->mnt_dir; 102 QString d = me->mnt_dir;
@@ -134,20 +135,21 @@ void StorageInfo::updateMounts()
134 humanname = tr( "CF Card: " ); 135 humanname = tr( "CF Card: " );
135 else if ( humanname == "/dev/hda1" ) 136 else if ( humanname == "/dev/hda1" )
136 humanname = tr( "Hard Disk " ); 137 humanname = tr( "Hard Disk " );
138
137 else if ( humanname.left(9) == "/dev/mmcd" ) 139 else if ( humanname.left(9) == "/dev/mmcd" )
138 humanname = tr( "SD Card " ); 140 humanname = tr( "SD Card " );
141
139 else if ( humanname.left(7) == "/dev/hd" ) 142 else if ( humanname.left(7) == "/dev/hd" )
140 humanname = tr( "Hard Disk /dev/hd " ); 143 humanname = tr( "Hard Disk /dev/hd " );
144
141 else if ( humanname.left(7) == "/dev/sd" ) 145 else if ( humanname.left(7) == "/dev/sd" )
142 humanname = tr( "SCSI Hard Disk /dev/sd " ); 146 humanname = tr( "SCSI Hard Disk /dev/sd " );
143 else if ( humanname == "/dev/mtdblock1" || humanname == "/dev/mtdblock/1" ) 147
144 humanname = tr( "Int. Storage " ); 148 else if ( humanname == "/dev/mtdblock1"
145 else if ( humanname.left(14) == "/dev/mtdblock/" ) 149 || humanname.left(13) == "/dev/mtdblock"
146 humanname = tr( "Int. Storage /dev/mtdblock/ " ); 150 || humanname.left(9) == "/dev/root")
147 else if ( humanname.left(13) == "/dev/mtdblock" )
148 humanname = tr( "Int. Storage /dev/mtdblock " );
149 else if ( humanname.left(9) == "/dev/root" )
150 humanname = tr( "Int. Storage " ); 151 humanname = tr( "Int. Storage " );
152
151 else if ( humanname.left(5) == "tmpfs" ) 153 else if ( humanname.left(5) == "tmpfs" )
152 humanname = tr( "RAM disk" ); 154 humanname = tr( "RAM disk" );
153 // etc. 155 // etc.