author | llornkcor <llornkcor> | 2002-11-10 01:12:01 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-10 01:12:01 (UTC) |
commit | d8bf328c4dfa2b33e2c5761c7af3b39ec307abee (patch) (side-by-side diff) | |
tree | b1185b0970076d4c76c358b8c96b696ae37270e1 | |
parent | 12aa2d36cdd22cbde571716db4da302159c718fd (diff) | |
download | opie-d8bf328c4dfa2b33e2c5761c7af3b39ec307abee.zip opie-d8bf328c4dfa2b33e2c5761c7af3b39ec307abee.tar.gz opie-d8bf328c4dfa2b33e2c5761c7af3b39ec307abee.tar.bz2 |
fix system version string for zaurus
-rw-r--r-- | libopie/odevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 7d8cdbf..25c9826 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -737,33 +737,33 @@ void Zaurus::init ( ) d-> m_modelstr = "Zaurus SL5000"; d-> m_model = Model_Zaurus_SL5000; d-> m_vendorstr = "Sharp"; d-> m_vendor = Vendor_Sharp; QFile f ( "/proc/filesystems" ); if ( f. open ( IO_ReadOnly ) && ( QTextStream ( &f ). read ( ). find ( "\tjffs2\n" ) >= 0 )) { d-> m_systemstr = "OpenZaurus"; d-> m_system = System_OpenZaurus; f. close ( ); f. setName ( "/etc/oz_version" ); if ( f. open ( IO_ReadOnly )) { QTextStream ts ( &f ); - d-> m_sysverstr = ts. readLine ( ). mid ( 10 ); + d-> m_sysverstr = ts. readLine ( );//. mid ( 10 ); f. close ( ); } } else { d-> m_systemstr = "Zaurus"; d-> m_system = System_Zaurus; } m_leds [0] = Led_Off; } #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> |