author | llornkcor <llornkcor> | 2002-11-10 01:12:01 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-10 01:12:01 (UTC) |
commit | d8bf328c4dfa2b33e2c5761c7af3b39ec307abee (patch) (unidiff) | |
tree | b1185b0970076d4c76c358b8c96b696ae37270e1 /libopie/odevice.cpp | |
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 | |||
@@ -741,25 +741,25 @@ void Zaurus::init ( ) | |||
741 | 741 | ||
742 | QFile f ( "/proc/filesystems" ); | 742 | QFile f ( "/proc/filesystems" ); |
743 | 743 | ||
744 | if ( f. open ( IO_ReadOnly ) && ( QTextStream ( &f ). read ( ). find ( "\tjffs2\n" ) >= 0 )) { | 744 | if ( f. open ( IO_ReadOnly ) && ( QTextStream ( &f ). read ( ). find ( "\tjffs2\n" ) >= 0 )) { |
745 | d-> m_systemstr = "OpenZaurus"; | 745 | d-> m_systemstr = "OpenZaurus"; |
746 | d-> m_system = System_OpenZaurus; | 746 | d-> m_system = System_OpenZaurus; |
747 | 747 | ||
748 | f. close ( ); | 748 | f. close ( ); |
749 | 749 | ||
750 | f. setName ( "/etc/oz_version" ); | 750 | f. setName ( "/etc/oz_version" ); |
751 | if ( f. open ( IO_ReadOnly )) { | 751 | if ( f. open ( IO_ReadOnly )) { |
752 | QTextStream ts ( &f ); | 752 | QTextStream ts ( &f ); |
753 | d-> m_sysverstr = ts. readLine ( ). mid ( 10 ); | 753 | d-> m_sysverstr = ts. readLine ( );//. mid ( 10 ); |
754 | f. close ( ); | 754 | f. close ( ); |
755 | } | 755 | } |
756 | } | 756 | } |
757 | else { | 757 | else { |
758 | d-> m_systemstr = "Zaurus"; | 758 | d-> m_systemstr = "Zaurus"; |
759 | d-> m_system = System_Zaurus; | 759 | d-> m_system = System_Zaurus; |
760 | } | 760 | } |
761 | 761 | ||
762 | 762 | ||
763 | m_leds [0] = Led_Off; | 763 | m_leds [0] = Led_Off; |
764 | } | 764 | } |
765 | 765 | ||