summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-09-27 23:35:30 (UTC)
committer kergoth <kergoth>2002-09-27 23:35:30 (UTC)
commit996c0d02d16c185acc3190baa5b4a1fc934e730c (patch) (unidiff)
tree837e0d9f0fef522964d28e3e841686d63521dadd
parentd7bcdda1857ff31830705921d8248200d881cf93 (diff)
downloadopie-996c0d02d16c185acc3190baa5b4a1fc934e730c.zip
opie-996c0d02d16c185acc3190baa5b4a1fc934e730c.tar.gz
opie-996c0d02d16c185acc3190baa5b4a1fc934e730c.tar.bz2
Check for /etc/oz_version.. tired of seeing OpenZaurus v0.0 in opie-login.
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie/odevice.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 9871e80..3bc1e0c 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -549,12 +549,20 @@ void ODeviceZaurus::init ( )
549 d-> m_system = OSYSTEM_OpenZaurus; 549 d-> m_system = OSYSTEM_OpenZaurus;
550 550
551 f. close ( ); 551 f. close ( );
552
553 f. setName ( "/etc/oz_version" );
554 if ( f. open ( IO_ReadOnly )) {
555 QTextStream ts ( &f );
556 d-> m_sysverstr = ts. readLine ( ). mid ( 10 );
557 f. close ( );
558 }
552 } 559 }
553 else { 560 else {
554 d-> m_systemstr = "Zaurus"; 561 d-> m_systemstr = "Zaurus";
555 d-> m_system = OSYSTEM_Zaurus; 562 d-> m_system = OSYSTEM_Zaurus;
556 } 563 }
557 564
565
558 d-> m_leds [0] = OLED_Off; 566 d-> m_leds [0] = OLED_Off;
559} 567}
560 568