summaryrefslogtreecommitdiff
path: root/libopie/odevice.cpp
Side-by-side diff
Diffstat (limited to 'libopie/odevice.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index bc43c52..a33d4ad 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -715,6 +715,4 @@ int iPAQ::lightSensorResolution ( ) const
void Zaurus::init ( )
{
- d-> m_modelstr = "Zaurus SL5000";
- d-> m_model = Model_Zaurus_SL5000;
d-> m_vendorstr = "Sharp";
d-> m_vendor = Vendor_Sharp;
@@ -740,4 +738,21 @@ void Zaurus::init ( )
}
+ f. setName ( "/proc/deviceinfo/product" );
+ if ( f. open ( IO_ReadOnly ) ) {
+ QTextStream ts ( &f );
+ QString model = ts. readLine ( );
+ f. close ( );
+ if ( model == "SL-5000D" ) {
+ d-> m_model = Model_Zaurus_SL5000;
+ d-> m_modelstr = "Zaurus SL-5000D";
+ } else if ( model == "SL-5500" ) {
+ d-> m_model = Model_Zaurus_SL5500;
+ d-> m_modelstr = "Zaurus SL-5500";
+ }
+ }
+ else {
+ d-> m_model = Model_Zaurus_SL5000;
+ d-> m_modelstr = "Zaurus SL-5000D (unverified)";
+ }
m_leds [0] = Led_Off;