summaryrefslogtreecommitdiff
path: root/libopie
Unidiff
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 58254a7..71ed9e4 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -1502,49 +1502,49 @@ bool Zaurus::isZaurus()
1502 } 1502 }
1503 1503
1504 // On non-embedix kernels, we have to look closer. 1504 // On non-embedix kernels, we have to look closer.
1505 bool is_zaurus = false; 1505 bool is_zaurus = false;
1506 QFile f ( "/proc/cpuinfo" ); 1506 QFile f ( "/proc/cpuinfo" );
1507 if ( f. open ( IO_ReadOnly ) ) { 1507 if ( f. open ( IO_ReadOnly ) ) {
1508 QString model; 1508 QString model;
1509 QFile f ( "/proc/cpuinfo" ); 1509 QFile f ( "/proc/cpuinfo" );
1510 1510
1511 QTextStream ts ( &f ); 1511 QTextStream ts ( &f );
1512 QString line; 1512 QString line;
1513 while( line = ts. readLine ( ) ) { 1513 while( line = ts. readLine ( ) ) {
1514 if ( line. left ( 8 ) == "Hardware" ) 1514 if ( line. left ( 8 ) == "Hardware" )
1515 break; 1515 break;
1516 } 1516 }
1517 int loc = line. find ( ":" ); 1517 int loc = line. find ( ":" );
1518 if ( loc != -1 ) 1518 if ( loc != -1 )
1519 model = line. mid ( loc + 2 ). simplifyWhiteSpace( ); 1519 model = line. mid ( loc + 2 ). simplifyWhiteSpace( );
1520 1520
1521 if ( model == "Sharp-Collie" 1521 if ( model == "Sharp-Collie"
1522 || model == "Collie" 1522 || model == "Collie"
1523 || model == "SHARP Corgi" 1523 || model == "SHARP Corgi"
1524 || model == "SHARP Shepherd" 1524 || model == "SHARP Shepherd"
1525 || model == "SHARP Poodle" 1525 || model == "SHARP Poodle"
1526 || model == "SHARP Husky" ) 1526 || model == "SHARP Husky"
1527 ) 1527 )
1528 is_zaurus = true; 1528 is_zaurus = true;
1529 1529
1530 } 1530 }
1531 return is_zaurus; 1531 return is_zaurus;
1532} 1532}
1533 1533
1534 1534
1535void Zaurus::init ( ) 1535void Zaurus::init ( )
1536{ 1536{
1537 d-> m_vendorstr = "Sharp"; 1537 d-> m_vendorstr = "Sharp";
1538 d-> m_vendor = Vendor_Sharp; 1538 d-> m_vendor = Vendor_Sharp;
1539 m_embedix = true; // Not openzaurus means: It has an embedix kernel ! 1539 m_embedix = true; // Not openzaurus means: It has an embedix kernel !
1540 1540
1541 // QFile f ( "/proc/filesystems" ); 1541 // QFile f ( "/proc/filesystems" );
1542 QString model; 1542 QString model;
1543 1543
1544 // It isn't a good idea to check the system configuration to 1544 // It isn't a good idea to check the system configuration to
1545 // detect the distribution ! 1545 // detect the distribution !
1546 // Otherwise it may happen that any other distribution is detected as openzaurus, just 1546 // Otherwise it may happen that any other distribution is detected as openzaurus, just
1547 // because it uses a jffs2 filesystem.. 1547 // because it uses a jffs2 filesystem..
1548 // (eilers) 1548 // (eilers)
1549 // if ( f. open ( IO_ReadOnly ) && ( QTextStream ( &f ). read ( ). find ( "\tjffs2\n" ) >= 0 )) { 1549 // if ( f. open ( IO_ReadOnly ) && ( QTextStream ( &f ). read ( ). find ( "\tjffs2\n" ) >= 0 )) {
1550 QFile f ("/etc/oz_version"); 1550 QFile f ("/etc/oz_version");