summaryrefslogtreecommitdiff
path: root/core/applets/cardmon/cardmon.cpp
Unidiff
Diffstat (limited to 'core/applets/cardmon/cardmon.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/cardmon/cardmon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp
index 53497df..452339c 100644
--- a/core/applets/cardmon/cardmon.cpp
+++ b/core/applets/cardmon/cardmon.cpp
@@ -278,25 +278,25 @@ bool CardMonitor::getStatusSd( int showPopUp ) {
278 cardInSd = FALSE; 278 cardInSd = FALSE;
279 279
280 #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) 280 #if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
281 281
282 struct mntent *me; 282 struct mntent *me;
283 FILE *mntfp = setmntent( "/etc/mtab", "r" ); 283 FILE *mntfp = setmntent( "/etc/mtab", "r" );
284 284
285 if ( mntfp ) { 285 if ( mntfp ) {
286 while ( ( me = getmntent( mntfp ) ) != 0 ) { 286 while ( ( me = getmntent( mntfp ) ) != 0 ) {
287 QString fs = QFile::decodeName( me->mnt_fsname ); 287 QString fs = QFile::decodeName( me->mnt_fsname );
288 //odebug << fs << oendl; 288 //odebug << fs << oendl;
289 if ( fs.left( 14 ) == "/dev/mmc/part1" || fs.left( 7 ) == "/dev/sd" 289 if ( fs.left( 14 ) == "/dev/mmc/part1" || fs.left( 7 ) == "/dev/sd"
290 || fs.left( 9 ) == "/dev/mmcd" ) { 290 || fs.left( 9 ) == "/dev/mmcd" || fs.left(11) == "/dev/mmcblk" ) {
291 cardInSd = TRUE; 291 cardInSd = TRUE;
292 cardSdName = fs; 292 cardSdName = fs;
293 show(); 293 show();
294 } 294 }
295 // else { 295 // else {
296 // cardInSd = FALSE; 296 // cardInSd = FALSE;
297 // } 297 // }
298 } 298 }
299 endmntent( mntfp ); 299 endmntent( mntfp );
300 } 300 }
301 301
302 if ( !showPopUp && cardWas != cardInSd ) { 302 if ( !showPopUp && cardWas != cardInSd ) {