author | kergoth <kergoth> | 2002-09-27 23:35:30 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-09-27 23:35:30 (UTC) |
commit | 996c0d02d16c185acc3190baa5b4a1fc934e730c (patch) (side-by-side diff) | |
tree | 837e0d9f0fef522964d28e3e841686d63521dadd /libopie/odevice.cpp | |
parent | d7bcdda1857ff31830705921d8248200d881cf93 (diff) | |
download | opie-996c0d02d16c185acc3190baa5b4a1fc934e730c.zip opie-996c0d02d16c185acc3190baa5b4a1fc934e730c.tar.gz opie-996c0d02d16c185acc3190baa5b4a1fc934e730c.tar.bz2 |
Check for /etc/oz_version.. tired of seeing OpenZaurus v0.0 in opie-login.
-rw-r--r-- | libopie/odevice.cpp | 8 |
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 @@ -548,14 +548,22 @@ void ODeviceZaurus::init ( ) d-> m_systemstr = "OpenZaurus"; d-> m_system = OSYSTEM_OpenZaurus; f. close ( ); + + f. setName ( "/etc/oz_version" ); + if ( f. open ( IO_ReadOnly )) { + QTextStream ts ( &f ); + d-> m_sysverstr = ts. readLine ( ). mid ( 10 ); + f. close ( ); + } } else { d-> m_systemstr = "Zaurus"; d-> m_system = OSYSTEM_Zaurus; } + d-> m_leds [0] = OLED_Off; } #include <unistd.h> |