author | kergoth <kergoth> | 2003-03-28 07:50:40 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-03-28 07:50:40 (UTC) |
commit | 5088d775fe68ac0dd1b6b9923ab66d30ce1d848a (patch) (side-by-side diff) | |
tree | b1c0a0330395bc1136715ad2b92dd5330379cba8 /library | |
parent | 827e06044df4df235912156c730baa3c87717526 (diff) | |
download | opie-5088d775fe68ac0dd1b6b9923ab66d30ce1d848a.zip opie-5088d775fe68ac0dd1b6b9923ab66d30ce1d848a.tar.gz opie-5088d775fe68ac0dd1b6b9923ab66d30ce1d848a.tar.bz2 |
Ensure StorageInfo picks up /dev/root
-rw-r--r-- | library/storage.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/storage.cpp b/library/storage.cpp index 912b22d..f4c1c02 100644 --- a/library/storage.cpp +++ b/library/storage.cpp @@ -112,5 +112,5 @@ void StorageInfo::update() || fs.left(8)=="/dev/mtd" || fs.left(9) == "/dev/mmcd" || fs.left( 14 ) == "/dev/mmc/part1" - || fs.left(5)=="tmpfs" ) + || fs.left(5)=="tmpfs" || fs.left(9)=="/dev/root" ) { n++; @@ -166,4 +166,6 @@ void StorageInfo::update() else if ( disk.left(13) == "/dev/mtdblock" ) humanname = tr("Internal Storage") + " " + disk; + else if ( disk.left(9) == "/dev/root" ) + humanname = tr("Internal Storage") + " " + disk; else if ( disk.left(5) == "tmpfs" ) //ipaqs /mnt/ramfs humanname = tr("Internal Memory"); |